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
- Mappings:
Namespace Name official bmcintermediary net/minecraft/class_1735named net/minecraft/screen/slot/Slot
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancanInsert(ItemStack stack)booleancanTakeItems(PlayerEntity playerEntity)booleandoDrawHoveringEffect()@Nullable 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)Optional<ItemStack>method_34264(int int2, int int3, PlayerEntity playerEntity)intmethod_34266()protected voidonCrafted(ItemStack stack)protected voidonCrafted(ItemStack stack, int amount)voidonStackChanged(ItemStack originalItem, ItemStack newItem)protected voidonTake(int amount)voidonTakeItem(PlayerEntity player, ItemStack stack)voidsetStack(ItemStack stack)ItemStacktakeStack(int amount)
-
Field Details
-
index
private final int index- Mappings:
Namespace Name Mixin selector official aLbmc;a:Iintermediary field_7875Lnet/minecraft/class_1735;field_7875:Inamed indexLnet/minecraft/screen/slot/Slot;index:I
-
inventory
- Mappings:
Namespace Name Mixin selector official cLbmc;c:Laqc;intermediary field_7871Lnet/minecraft/class_1735;field_7871:Lnet/minecraft/class_1263;named inventoryLnet/minecraft/screen/slot/Slot;inventory:Lnet/minecraft/inventory/Inventory;
-
id
public int id- Mappings:
Namespace Name Mixin selector official dLbmc;d:Iintermediary field_7874Lnet/minecraft/class_1735;field_7874:Inamed idLnet/minecraft/screen/slot/Slot;id:I
-
x
public final int x- Mappings:
Namespace Name Mixin selector official eLbmc;e:Iintermediary field_7873Lnet/minecraft/class_1735;field_7873:Inamed xLnet/minecraft/screen/slot/Slot;x:I
-
y
public final int y- Mappings:
Namespace Name Mixin selector official fLbmc;f:Iintermediary field_7872Lnet/minecraft/class_1735;field_7872:Inamed yLnet/minecraft/screen/slot/Slot;y:I
-
-
Constructor Details
-
Slot
- Mappings:
Namespace Name Mixin selector official <init>Lbmc;<init>(Laqc;III)Vintermediary <init>Lnet/minecraft/class_1735;<init>(Lnet/minecraft/class_1263;III)Vnamed <init>Lnet/minecraft/screen/slot/Slot;<init>(Lnet/minecraft/inventory/Inventory;III)V
-
-
Method Details
-
onStackChanged
- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lboq;Lboq;)Vintermediary method_7670Lnet/minecraft/class_1735;method_7670(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vnamed onStackChangedLnet/minecraft/screen/slot/Slot;onStackChanged(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
-
onCrafted
- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lboq;I)Vintermediary method_7678Lnet/minecraft/class_1735;method_7678(Lnet/minecraft/class_1799;I)Vnamed onCraftedLnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
-
onTake
protected void onTake(int amount)- Mappings:
Namespace Name Mixin selector official bLbmc;b(I)Vintermediary method_7672Lnet/minecraft/class_1735;method_7672(I)Vnamed onTakeLnet/minecraft/screen/slot/Slot;onTake(I)V
-
onCrafted
- Mappings:
Namespace Name Mixin selector official cLbmc;c(Lboq;)Vintermediary method_7669Lnet/minecraft/class_1735;method_7669(Lnet/minecraft/class_1799;)Vnamed onCraftedLnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
-
onTakeItem
- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lbif;Lboq;)Vintermediary method_7667Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vnamed onTakeItemLnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
canInsert
- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lboq;)Zintermediary method_7680Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Znamed canInsertLnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
-
getStack
- Mappings:
Namespace Name Mixin selector official eLbmc;e()Lboq;intermediary method_7677Lnet/minecraft/class_1735;method_7677()Lnet/minecraft/class_1799;named getStackLnet/minecraft/screen/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
-
hasStack
public boolean hasStack()- Mappings:
Namespace Name Mixin selector official fLbmc;f()Zintermediary method_7681Lnet/minecraft/class_1735;method_7681()Znamed hasStackLnet/minecraft/screen/slot/Slot;hasStack()Z
-
setStack
- Mappings:
Namespace Name Mixin selector official dLbmc;d(Lboq;)Vintermediary method_7673Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)Vnamed setStackLnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;)V
-
markDirty
public void markDirty()- Mappings:
Namespace Name Mixin selector official dLbmc;d()Vintermediary method_7668Lnet/minecraft/class_1735;method_7668()Vnamed markDirtyLnet/minecraft/screen/slot/Slot;markDirty()V
-
getMaxItemCount
public int getMaxItemCount()- Mappings:
Namespace Name Mixin selector official aLbmc;a()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
getMaxItemCount
- Mappings:
Namespace Name Mixin selector official bLbmc;b(Lboq;)Iintermediary method_7676Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
-
getBackgroundSprite
@Environment(CLIENT) @Nullable public @Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()- Mappings:
Namespace Name Mixin selector official cLbmc;c()Lcom/mojang/datafixers/util/Pair;intermediary method_7679Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;named getBackgroundSpriteLnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
-
takeStack
- Mappings:
Namespace Name Mixin selector official aLbmc;a(I)Lboq;intermediary method_7671Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;named takeStackLnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
-
canTakeItems
- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lbif;)Zintermediary method_7674Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Znamed canTakeItemsLnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
doDrawHoveringEffect
- Mappings:
Namespace Name Mixin selector official bLbmc;b()Zintermediary method_7682Lnet/minecraft/class_1735;method_7682()Znamed doDrawHoveringEffectLnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
-
method_34264
- Mappings:
Namespace Name Mixin selector official aLbmc;a(IILbif;)Ljava/util/Optional;intermediary method_34264Lnet/minecraft/class_1735;method_34264(IILnet/minecraft/class_1657;)Ljava/util/Optional;named method_34264Lnet/minecraft/screen/slot/Slot;method_34264(IILnet/minecraft/entity/player/PlayerEntity;)Ljava/util/Optional;
-
method_32753
- Mappings:
Namespace Name Mixin selector official bLbmc;b(IILbif;)Lboq;intermediary method_32753Lnet/minecraft/class_1735;method_32753(IILnet/minecraft/class_1657;)Lnet/minecraft/class_1799;named method_32753Lnet/minecraft/screen/slot/Slot;method_32753(IILnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
method_32756
- Mappings:
Namespace Name Mixin selector official eLbmc;e(Lboq;)Lboq;intermediary method_32756Lnet/minecraft/class_1735;method_32756(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named method_32756Lnet/minecraft/screen/slot/Slot;method_32756(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
method_32755
- Mappings:
Namespace Name Mixin selector official bLbmc;b(Lboq;I)Lboq;intermediary method_32755Lnet/minecraft/class_1735;method_32755(Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1799;named method_32755Lnet/minecraft/screen/slot/Slot;method_32755(Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
-
method_32754
- Mappings:
Namespace Name Mixin selector official bLbmc;b(Lbif;)Zintermediary method_32754Lnet/minecraft/class_1735;method_32754(Lnet/minecraft/class_1657;)Znamed method_32754Lnet/minecraft/screen/slot/Slot;method_32754(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
method_34266
public int method_34266()- Mappings:
Namespace Name Mixin selector official gLbmc;g()Iintermediary method_34266Lnet/minecraft/class_1735;method_34266()Inamed method_34266Lnet/minecraft/screen/slot/Slot;method_34266()I
-