Package net.minecraft.screen
Class HorseScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.HorseScreenHandler
public class HorseScreenHandler extends ScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private HorseBaseEntityentityprivate InventoryinventoryFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description HorseScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, HorseBaseEntity entity) -
Method Summary
Modifier and Type Method Description booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
entity
-
-
Constructor Details
-
HorseScreenHandler
public HorseScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, HorseBaseEntity entity)
-
-
Method Details
-
canUse
- Specified by:
canUsein classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
close
- Overrides:
closein classScreenHandler
-