From 58cbdd972d1d5ac403ec039f447c1ff66211ece2 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Fri, 22 May 2020 11:57:43 +0300 Subject: Document PropertyDelegateHolder --- .../github/cottonmc/cotton/gui/PropertyDelegateHolder.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. + * + *
On the client, the returned property delegate must have a working implementation of + * {@link PropertyDelegate#set(int, int)}. + * + * @return the property delegate + */ public PropertyDelegate getPropertyDelegate(); } -- cgit