@Environment(value=CLIENT) static class CreativeInventoryScreen.CreativeSlot extends Slot
Constructor and Description |
---|
CreativeSlot(Slot slot,
int invSlot,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInsert(ItemStack stack) |
boolean |
canTakeItems(PlayerEntity playerEntity) |
boolean |
doDrawHoveringEffect() |
com.mojang.datafixers.util.Pair<Identifier,Identifier> |
getBackgroundSprite() |
int |
getMaxItemCount() |
int |
getMaxItemCount(ItemStack stack) |
ItemStack |
getStack() |
boolean |
hasStack() |
void |
markDirty() |
ItemStack |
onTakeItem(PlayerEntity player,
ItemStack stack) |
void |
setStack(ItemStack stack) |
ItemStack |
takeStack(int amount) |
onCrafted, onCrafted, onStackChanged, onTake
private final Slot slot
public CreativeSlot(Slot slot, int invSlot, int x, int y)
public ItemStack onTakeItem(PlayerEntity player, ItemStack stack)
onTakeItem
in class Slot
public int getMaxItemCount()
getMaxItemCount
in class Slot
public int getMaxItemCount(ItemStack stack)
getMaxItemCount
in class Slot
@Nullable public com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()
getBackgroundSprite
in class Slot
public boolean doDrawHoveringEffect()
doDrawHoveringEffect
in class Slot
public boolean canTakeItems(PlayerEntity playerEntity)
canTakeItems
in class Slot