Package net.minecraft.screen.slot
Class Slot
java.lang.Object
net.minecraft.screen.slot.Slot
- Direct Known Subclasses:
BeaconScreenHandler.PaymentSlot,BrewingStandScreenHandler.FuelSlot,BrewingStandScreenHandler.IngredientSlot,BrewingStandScreenHandler.PotionSlot,CraftingResultSlot,CreativeInventoryScreen.CreativeSlot,CreativeInventoryScreen.LockableSlot,FurnaceFuelSlot,FurnaceOutputSlot,ShulkerBoxSlot,TradeOutputSlot
public class Slot extends Object
-
Field Summary
-
Constructor Summary
-
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()ItemStackmethod_32753(int int2, int int3, PlayerEntity playerEntity)booleanmethod_32754(PlayerEntity playerEntity)ItemStackmethod_32755(ItemStack itemStack, int int2)ItemStackmethod_32756(ItemStack itemStack)protected voidonCrafted(ItemStack stack)protected voidonCrafted(ItemStack stack, int amount)voidonStackChanged(ItemStack originalItem, ItemStack newItem)protected voidonTake(int amount)ItemStackonTakeItem(PlayerEntity player, ItemStack stack)voidsetStack(ItemStack stack)ItemStacktakeStack(int amount)
-
Field Details
-
index
private final int index -
inventory
-
id
public int id -
x
public final int x -
y
public final int y
-
-
Constructor Details
-
Slot
-
-
Method Details
-
onStackChanged
-
onCrafted
-
onTake
protected void onTake(int amount) -
onCrafted
-
onTakeItem
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount() -
getMaxItemCount
-
getBackgroundSprite
@Environment(CLIENT) @Nullable public com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite() -
takeStack
-
canTakeItems
-
doDrawHoveringEffect
@Environment(CLIENT) public boolean doDrawHoveringEffect() -
method_32753
-
method_32756
-
method_32755
-
method_32754
-