aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-22 11:57:43 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-22 11:57:43 +0300
commit58cbdd972d1d5ac403ec039f447c1ff66211ece2 (patch)
tree8939f9112e8f374a482bc76b03bbf0a3e65f240c /src/main/java/io
parente3bfea694408fcbb9c3439b4ff35e079a9130fa4 (diff)
downloadLibGui-58cbdd972d1d5ac403ec039f447c1ff66211ece2.tar.gz
LibGui-58cbdd972d1d5ac403ec039f447c1ff66211ece2.tar.bz2
LibGui-58cbdd972d1d5ac403ec039f447c1ff66211ece2.zip
Document PropertyDelegateHolderunstable/2.0
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.java b/src/main/java/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.java
index 5b33320..af61892 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.java
@@ -2,6 +2,20 @@ package io.github.cottonmc.cotton.gui;
import net.minecraft.screen.PropertyDelegate;
+/**
+ * This interface can be implemented on block entity classes
+ * for providing a property delegate.
+ *
+ * @see CottonInventoryController#getBlockPropertyDelegate(net.minecraft.screen.ScreenHandlerContext)
+ */
public interface PropertyDelegateHolder {
+ /**
+ * Gets this block entity's property delegate.
+ *
+ * <p>On the client, the returned property delegate <b>must</b> have a working implementation of
+ * {@link PropertyDelegate#set(int, int)}.
+ *
+ * @return the property delegate
+ */
public PropertyDelegate getPropertyDelegate();
}