Interface IValueNotifiable

All Known Implementing Classes:
ContainerExtended, ContainerInfoBookTest, ContainerScreenExtended, ContainerScreenScrolling, InventoryContainer, ItemInventoryContainer, ScrollingInventoryContainer

public interface IValueNotifiable
Used for receiving values from servers to clients in guis.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.inventory.MenuType<?>
     
    void
    onUpdate(int valueId, net.minecraft.nbt.CompoundTag value)
    Called by the server if the value has changed.
  • Method Details

    • getValueNotifiableType

      net.minecraft.world.inventory.MenuType<?> getValueNotifiableType()
      Returns:
      The container type.
    • onUpdate

      void onUpdate(int valueId, net.minecraft.nbt.CompoundTag value)
      Called by the server if the value has changed.
      Parameters:
      valueId - The value id.
      value - The new value.