public class HorseScreenHandler extends ScreenHandler
| Modifier and Type | Field and Description |
|---|---|
private HorseBaseEntity |
entity |
private Inventory |
inventory |
slots, syncId| Constructor and Description |
|---|
HorseScreenHandler(int syncId,
PlayerInventory playerInventory,
Inventory inventory,
HorseBaseEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacksprivate final Inventory inventory
private final HorseBaseEntity entity
public HorseScreenHandler(int syncId,
PlayerInventory playerInventory,
Inventory inventory,
HorseBaseEntity entity)
public boolean canUse(PlayerEntity player)
canUse in class ScreenHandlerpublic ItemStack transferSlot(PlayerEntity player, int index)
transferSlot in class ScreenHandlerpublic void close(PlayerEntity player)
close in class ScreenHandler