类 CreativeInventoryScreen.CreativeSlot

  • 封闭类:
    CreativeInventoryScreen

    @Environment(CLIENT)
    static class CreativeInventoryScreen.CreativeSlot
    extends Slot
    Mappings:
    Namespace Name
    official eap$c
    intermediary net/minecraft/class_481$class_484
    named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot
    • 字段详细资料

      • slot

        private final Slot slot
        Mappings:
        Namespace Name Mixin selector
        official a Leap$c;a:Lbnc;
        intermediary field_2898 Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;
        named slot Lnet/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)V
        intermediary <init> Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)V
        named <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 a Lbnc;a(Lbjf;Lbpr;)V
        intermediary method_7667 Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
        named onTakeItem Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      • canInsert

        public boolean canInsert​(ItemStack stack)
        覆盖:
        canInsert 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(Lbpr;)Z
        intermediary method_7680 Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Z
        named canInsert Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
      • getStack

        public ItemStack getStack()
        覆盖:
        getStack 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official e Lbnc;e()Lbpr;
        intermediary method_7677 Lnet/minecraft/class_1735;method_7677()Lnet/minecraft/class_1799;
        named getStack Lnet/minecraft/screen/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
      • hasStack

        public boolean hasStack()
        覆盖:
        hasStack 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official f Lbnc;f()Z
        intermediary method_7681 Lnet/minecraft/class_1735;method_7681()Z
        named hasStack Lnet/minecraft/screen/slot/Slot;hasStack()Z
      • setStack

        public void setStack​(ItemStack stack)
        覆盖:
        setStack 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official d Lbnc;d(Lbpr;)V
        intermediary method_7673 Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)V
        named setStack Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;)V
      • markDirty

        public void markDirty()
        覆盖:
        markDirty 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official d Lbnc;d()V
        intermediary method_7668 Lnet/minecraft/class_1735;method_7668()V
        named markDirty Lnet/minecraft/screen/slot/Slot;markDirty()V
      • getMaxItemCount

        public int getMaxItemCount()
        覆盖:
        getMaxItemCount 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a()I
        intermediary method_7675 Lnet/minecraft/class_1735;method_7675()I
        named getMaxItemCount Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
      • getMaxItemCount

        public int getMaxItemCount​(ItemStack stack)
        覆盖:
        getMaxItemCount 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official b Lbnc;b(Lbpr;)I
        intermediary method_7676 Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)I
        named getMaxItemCount Lnet/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 c Lbnc;c()Lcom/mojang/datafixers/util/Pair;
        intermediary method_7679 Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
        named getBackgroundSprite Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
      • takeStack

        public ItemStack takeStack​(int amount)
        覆盖:
        takeStack 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(I)Lbpr;
        intermediary method_7671 Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;
        named takeStack Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
      • doDrawHoveringEffect

        public boolean doDrawHoveringEffect()
        覆盖:
        doDrawHoveringEffect 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official b Lbnc;b()Z
        intermediary method_7682 Lnet/minecraft/class_1735;method_7682()Z
        named doDrawHoveringEffect Lnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
      • canTakeItems

        public boolean canTakeItems​(PlayerEntity playerEntity)
        覆盖:
        canTakeItems 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(Lbjf;)Z
        intermediary method_7674 Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
        named canTakeItems Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z