Class CreativeInventoryScreen.CreativeSlot

java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeSlot
Enclosing class:
CreativeInventoryScreen

@Environment(CLIENT) private static class CreativeInventoryScreen.CreativeSlot extends Slot
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot
intermediary net/minecraft/class_481$class_484
official fvc$c
  • Field Details

    • slot

      final Slot slot
      Mappings:
      Namespace Name Mixin selector
      named slot Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;
      intermediary field_2898 Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;
      official a Lfvc$c;a:Lcuy;
  • Constructor Details

    • CreativeSlot

      public CreativeSlot(Slot slot, int invSlot, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;<init>(Lnet/minecraft/screen/slot/Slot;III)V
      intermediary <init> Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)V
      official <init> Lfvc$c;<init>(Lcuy;III)V
  • Method Details

    • onTakeItem

      public void onTakeItem(PlayerEntity player, ItemStack stack)
      Overrides:
      onTakeItem in class Slot
      Mappings:
      Namespace Name Mixin selector
      named onTakeItem Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary method_7667 Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
      official a Lcuy;a(Lcpw;Lcxo;)V
    • canInsert

      public boolean canInsert(ItemStack stack)
      Overrides:
      canInsert in class Slot
      Mappings:
      Namespace Name Mixin selector
      named canInsert Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7680 Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Z
      official a Lcuy;a(Lcxo;)Z
    • getStack

      public ItemStack getStack()
      Overrides:
      getStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      named getStack Lnet/minecraft/screen/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
      intermediary method_7677 Lnet/minecraft/class_1735;method_7677()Lnet/minecraft/class_1799;
      official g Lcuy;g()Lcxo;
    • hasStack

      public boolean hasStack()
      Overrides:
      hasStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      named hasStack Lnet/minecraft/screen/slot/Slot;hasStack()Z
      intermediary method_7681 Lnet/minecraft/class_1735;method_7681()Z
      official h Lcuy;h()Z
    • setStack

      public void setStack(ItemStack stack, ItemStack previousStack)
      Sets the slot's stack to stack and marks the slot as dirty. Subclasses may override this method to perform additional operations.
      Overrides:
      setStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      named setStack Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
      intermediary method_48931 Lnet/minecraft/class_1735;method_48931(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
      official a Lcuy;a(Lcxo;Lcxo;)V
    • setStackNoCallbacks

      public void setStackNoCallbacks(ItemStack stack)
      Overrides:
      setStackNoCallbacks in class Slot
      Mappings:
      Namespace Name Mixin selector
      named setStackNoCallbacks Lnet/minecraft/screen/slot/Slot;setStackNoCallbacks(Lnet/minecraft/item/ItemStack;)V
      intermediary method_7673 Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)V
      official f Lcuy;f(Lcxo;)V
    • markDirty

      public void markDirty()
      Overrides:
      markDirty in class Slot
      Mappings:
      Namespace Name Mixin selector
      named markDirty Lnet/minecraft/screen/slot/Slot;markDirty()V
      intermediary method_7668 Lnet/minecraft/class_1735;method_7668()V
      official c Lcuy;c()V
    • getMaxItemCount

      public int getMaxItemCount()
      Overrides:
      getMaxItemCount in class Slot
      Mappings:
      Namespace Name Mixin selector
      named getMaxItemCount Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
      intermediary method_7675 Lnet/minecraft/class_1735;method_7675()I
      official a Lcuy;a()I
    • getMaxItemCount

      public int getMaxItemCount(ItemStack stack)
      Overrides:
      getMaxItemCount in class Slot
      Mappings:
      Namespace Name Mixin selector
      named getMaxItemCount Lnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
      intermediary method_7676 Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)I
      official a_ Lcuy;a_(Lcxo;)I
    • getBackgroundSprite

      @Nullable public @Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()
      Overrides:
      getBackgroundSprite in class Slot
      Mappings:
      Namespace Name Mixin selector
      named getBackgroundSprite Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
      intermediary method_7679 Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
      official b Lcuy;b()Lcom/mojang/datafixers/util/Pair;
    • takeStack

      public ItemStack takeStack(int amount)
      Overrides:
      takeStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      named takeStack Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
      intermediary method_7671 Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;
      official a Lcuy;a(I)Lcxo;
    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class Slot
      Mappings:
      Namespace Name Mixin selector
      named isEnabled Lnet/minecraft/screen/slot/Slot;isEnabled()Z
      intermediary method_7682 Lnet/minecraft/class_1735;method_7682()Z
      official d Lcuy;d()Z
    • canTakeItems

      public boolean canTakeItems(PlayerEntity playerEntity)
      Overrides:
      canTakeItems in class Slot
      Mappings:
      Namespace Name Mixin selector
      named canTakeItems Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_7674 Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
      official a Lcuy;a(Lcpw;)Z