类 CreativeInventoryScreen.CreativeSlot
- java.lang.Object
-
- net.minecraft.screen.slot.Slot
-
- net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeSlot
-
@Environment(CLIENT) static class CreativeInventoryScreen.CreativeSlot extends Slot
- Mappings:
Namespace Name official eap$cintermediary net/minecraft/class_481$class_484named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot
-
-
构造器概要
构造器 构造器 说明 CreativeSlot(Slot slot, int invSlot, int x, int y)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanInsert(ItemStack stack)booleancanTakeItems(PlayerEntity playerEntity)booleandoDrawHoveringEffect()@Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier>getBackgroundSprite()intgetMaxItemCount()intgetMaxItemCount(ItemStack stack)ItemStackgetStack()booleanhasStack()voidmarkDirty()voidonTakeItem(PlayerEntity player, ItemStack stack)voidsetStack(ItemStack stack)ItemStacktakeStack(int amount)-
从类继承的方法 net.minecraft.screen.slot.Slot
canTakePartial, getIndex, insertStack, insertStack, onCrafted, onCrafted, onStackChanged, onTake, takeStackRange, tryTakeStackRange
-
-
-
-
字段详细资料
-
slot
private final Slot slot
- Mappings:
Namespace Name Mixin selector official aLeap$c;a:Lbnc;intermediary field_2898Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;named slotLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;
-
-
构造器详细资料
-
CreativeSlot
public CreativeSlot(Slot slot, int invSlot, int x, int y)
- Mappings:
Namespace Name Mixin selector official <init>Leap$c;<init>(Lbnc;III)Vintermediary <init>Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)Vnamed <init>Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;<init>(Lnet/minecraft/screen/slot/Slot;III)V
-
-
方法详细资料
-
onTakeItem
public void onTakeItem(PlayerEntity player, ItemStack stack)
- 覆盖:
onTakeItem在类中Slot- Mappings:
Namespace Name Mixin selector official aLbnc;a(Lbjf;Lbpr;)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
public boolean canInsert(ItemStack stack)
-
getStack
public ItemStack getStack()
-
hasStack
public boolean hasStack()
-
setStack
public void setStack(ItemStack stack)
-
markDirty
public void markDirty()
-
getMaxItemCount
public int getMaxItemCount()
- 覆盖:
getMaxItemCount在类中Slot- Mappings:
Namespace Name Mixin selector official aLbnc;a()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
getMaxItemCount
public int getMaxItemCount(ItemStack stack)
- 覆盖:
getMaxItemCount在类中Slot- Mappings:
Namespace Name Mixin selector official bLbnc;b(Lbpr;)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
@Nullable public @Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()
- 覆盖:
getBackgroundSprite在类中Slot- Mappings:
Namespace Name Mixin selector official cLbnc;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
public ItemStack takeStack(int amount)
-
doDrawHoveringEffect
public boolean doDrawHoveringEffect()
- 覆盖:
doDrawHoveringEffect在类中Slot- Mappings:
Namespace Name Mixin selector official bLbnc;b()Zintermediary method_7682Lnet/minecraft/class_1735;method_7682()Znamed doDrawHoveringEffectLnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
-
canTakeItems
public boolean canTakeItems(PlayerEntity playerEntity)
- 覆盖:
canTakeItems在类中Slot- Mappings:
Namespace Name Mixin selector official aLbnc;a(Lbjf;)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
-
-