@Environment(value=CLIENT) public class CreativeInventoryListener extends Object implements ScreenHandlerListener
| Modifier and Type | Field and Description |
|---|---|
private MinecraftClient |
client |
| Constructor and Description |
|---|
CreativeInventoryListener(MinecraftClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
onHandlerRegistered(ScreenHandler handler,
DefaultedList<ItemStack> stacks) |
void |
onPropertyUpdate(ScreenHandler handler,
int propertyId,
int value) |
void |
onSlotUpdate(ScreenHandler handler,
int slotId,
ItemStack stack) |
private final MinecraftClient client
public CreativeInventoryListener(MinecraftClient client)
public void onHandlerRegistered(ScreenHandler handler, DefaultedList<ItemStack> stacks)
onHandlerRegistered in interface ScreenHandlerListenerpublic void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate in interface ScreenHandlerListenerpublic void onPropertyUpdate(ScreenHandler handler, int propertyId, int value)
onPropertyUpdate in interface ScreenHandlerListener