Interface IValueNotifier
- All Known Implementing Classes:
ContainerExtended
,ContainerInfoBookTest
,InventoryContainer
,ItemInventoryContainer
,ScrollingInventoryContainer
public interface IValueNotifier
Used for sending values from server to clients in guis.
Similar to Minecraft's ICrafting.
- See Also:
-
Method Details
-
setValue
void setValue(int valueId, net.minecraft.nbt.CompoundTag value) Set the value for given value id. This will send a packet if it has changed. If called on the client, a packet to the server will be sent. If called on the server, a packet to the client will be sent.- Parameters:
valueId
- The value id.value
- The new value.
-
getValueIds
- Returns:
- All available value ids.
-
getValue
net.minecraft.nbt.CompoundTag getValue(int valueId) Get the value for the given value id.- Parameters:
valueId
- The value id.- Returns:
- The value or null.
-