public class SlotPlayer
extends net.minecraft.inventory.container.Slot
| Constructor and Description |
|---|
SlotPlayer(net.minecraft.entity.player.PlayerInventory inventoryIn,
net.minecraft.inventory.EquipmentSlotType slotType,
int xPosition,
int yPosition) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxStackSize() |
com.mojang.datafixers.util.Pair<net.minecraft.util.ResourceLocation,net.minecraft.util.ResourceLocation> |
getNoItemIcon() |
boolean |
mayPickup(net.minecraft.entity.player.PlayerEntity playerIn) |
boolean |
mayPlace(net.minecraft.item.ItemStack stack) |
public SlotPlayer(net.minecraft.entity.player.PlayerInventory inventoryIn,
net.minecraft.inventory.EquipmentSlotType slotType,
int xPosition,
int yPosition)
public int getMaxStackSize()
getMaxStackSize in class net.minecraft.inventory.container.Slotpublic boolean mayPlace(net.minecraft.item.ItemStack stack)
mayPlace in class net.minecraft.inventory.container.Slotpublic boolean mayPickup(net.minecraft.entity.player.PlayerEntity playerIn)
mayPickup in class net.minecraft.inventory.container.Slotpublic com.mojang.datafixers.util.Pair<net.minecraft.util.ResourceLocation,net.minecraft.util.ResourceLocation> getNoItemIcon()
getNoItemIcon in class net.minecraft.inventory.container.Slot