Class CreativeInventoryScreen.CreativeSlot
java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeSlot
- Enclosing class:
- CreativeInventoryScreen
@Environment(CLIENT) static class CreativeInventoryScreen.CreativeSlot extends Slot
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CreativeSlot(Slot slot, int invSlot, int x, int y)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.screen.slot.Slot
onCrafted, onCrafted, onStackChanged, onTake
-
Field Details
-
slot
-
-
Constructor Details
-
CreativeSlot
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItem
in classSlot
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCount
in classSlot
-
getMaxItemCount
- Overrides:
getMaxItemCount
in classSlot
-
getBackgroundSprite
- Overrides:
getBackgroundSprite
in classSlot
-
takeStack
-
doDrawHoveringEffect
public boolean doDrawHoveringEffect()- Overrides:
doDrawHoveringEffect
in classSlot
-
canTakeItems
- Overrides:
canTakeItems
in classSlot
-