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 booleancanInsert(ItemStack stack)booleancanTakeItems(PlayerEntity playerEntity)booleandoDrawHoveringEffect()com.mojang.datafixers.util.Pair<Identifier,Identifier>getBackgroundSprite()intgetMaxItemCount()intgetMaxItemCount(ItemStack stack)ItemStackgetStack()booleanhasStack()voidmarkDirty()ItemStackonTakeItem(PlayerEntity player, ItemStack stack)voidsetStack(ItemStack stack)ItemStacktakeStack(int amount)Methods inherited from class net.minecraft.screen.slot.Slot
method_32753, method_32754, method_32755, method_32756, onCrafted, onCrafted, onStackChanged, onTake
-
Field Details
-
slot
-
-
Constructor Details
-
CreativeSlot
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItemin classSlot
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCountin classSlot
-
getMaxItemCount
- Overrides:
getMaxItemCountin classSlot
-
getBackgroundSprite
- Overrides:
getBackgroundSpritein classSlot
-
takeStack
-
doDrawHoveringEffect
public boolean doDrawHoveringEffect()- Overrides:
doDrawHoveringEffectin classSlot
-
canTakeItems
- Overrides:
canTakeItemsin classSlot
-