@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, 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 getMaxItemCount()
getMaxItemCount in class Slotpublic int getMaxItemCount(ItemStack stack)
getMaxItemCount 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