@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 property,
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 ScreenHandlerListener
public void onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
onSlotUpdate
in interface ScreenHandlerListener
public void onPropertyUpdate(ScreenHandler handler, int property, int value)
onPropertyUpdate
in interface ScreenHandlerListener