@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 |
getMaxStackAmount() |
int |
getMaxStackAmount(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, onTakeprivate final Slot slot
public CreativeSlot(Slot slot, int invSlot, int x, int y)
public ItemStack onTakeItem(PlayerEntity player, ItemStack stack)
onTakeItem in class Slotpublic int getMaxStackAmount()
getMaxStackAmount in class Slotpublic int getMaxStackAmount(ItemStack stack)
getMaxStackAmount in class Slot@Nullable public com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()
getBackgroundSprite in class Slotpublic boolean doDrawHoveringEffect()
doDrawHoveringEffect in class Slotpublic boolean canTakeItems(PlayerEntity playerEntity)
canTakeItems in class Slot