diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-22 11:57:43 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-22 11:57:43 +0300 |
commit | 58cbdd972d1d5ac403ec039f447c1ff66211ece2 (patch) | |
tree | 8939f9112e8f374a482bc76b03bbf0a3e65f240c /src/main/java/io | |
parent | e3bfea694408fcbb9c3439b4ff35e079a9130fa4 (diff) | |
download | LibGui-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.java | 14 |
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(); } |