Class SpawnEggItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.SpawnEggItem

public class SpawnEggItem extends Item
Mappings:
Namespace Name
official ajv
intermediary net/minecraft/class_1076
named net/minecraft/item/SpawnEggItem
  • Constructor Details

    • SpawnEggItem

      public SpawnEggItem()
      Mappings:
      Namespace Name Mixin selector
      official <init> Lain;<init>()V
      intermediary <init> Lnet/minecraft/class_1069;<init>()V
      named <init> Lnet/minecraft/item/Item;<init>()V
  • Method Details

    • getDisplayName

      public String getDisplayName(ItemStack stack)
      Overrides:
      getDisplayName in class Item
      Mappings:
      Namespace Name Mixin selector
      official b Lain;b(Laip;)Ljava/lang/String;
      intermediary method_3383 Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;
      named getDisplayName Lnet/minecraft/item/Item;getDisplayName(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
    • use

      public ActionResult use(PlayerEntity player, World world, BlockPos pos, Hand hand, Direction direction, float x, float y, float z)
      Overrides:
      use in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lain;a(Laed;Lamu;Let;Lub;Lfa;FFF)Lud;
      intermediary method_3355 Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Lnet/minecraft/class_2962;
      named use Lnet/minecraft/item/Item;use(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Lnet/minecraft/util/ActionResult;
    • method_13666

      protected double method_13666(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Lamu;Let;)D
      intermediary method_13666 Lnet/minecraft/class_1076;method_13666(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)D
      named method_13666 Lnet/minecraft/item/SpawnEggItem;method_13666(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)D
    • method_11406

      public static void method_11406(World world, @Nullable PlayerEntity player, ItemStack stack, @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Lamu;Laed;Laip;Lvg;)V
      intermediary method_11406 Lnet/minecraft/class_1076;method_11406(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;Lnet/minecraft/class_864;)V
      named method_11406 Lnet/minecraft/item/SpawnEggItem;method_11406(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/Entity;)V
    • method_13649

      public TypedActionResult<ItemStack> method_13649(World world, PlayerEntity player, Hand hand)
      Overrides:
      method_13649 in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lain;a(Lamu;Laed;Lub;)Lue;
      intermediary method_13649 Lnet/minecraft/class_1069;method_13649(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;
      named method_13649 Lnet/minecraft/item/Item;method_13649(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/TypedActionResult;
    • createEntity

      @Nullable public static Entity createEntity(World world, @Nullable Identifier entityId, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Lamu;Lnf;DDD)Lvg;
      intermediary method_4628 Lnet/minecraft/class_1076;method_4628(Lnet/minecraft/class_1150;Lnet/minecraft/class_1653;DDD)Lnet/minecraft/class_864;
      named createEntity Lnet/minecraft/item/SpawnEggItem;createEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/Identifier;DDD)Lnet/minecraft/entity/Entity;
    • appendToItemGroup

      public void appendToItemGroup(ItemGroup group, DefaultedList<ItemStack> stacks)
      Overrides:
      appendToItemGroup in class Item
      Mappings:
      Namespace Name Mixin selector
      official a Lain;a(Lahp;Lfi;)V
      intermediary method_14233 Lnet/minecraft/class_1069;method_14233(Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)V
      named appendToItemGroup Lnet/minecraft/item/Item;appendToItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
    • setEggEntity

      public static void setEggEntity(ItemStack stack, Identifier entityId)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Laip;Lnf;)V
      intermediary method_11405 Lnet/minecraft/class_1076;method_11405(Lnet/minecraft/class_1071;Lnet/minecraft/class_1653;)V
      named setEggEntity Lnet/minecraft/item/SpawnEggItem;setEggEntity(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Identifier;)V
    • getEntityIdentifierFromStack

      @Nullable public static Identifier getEntityIdentifierFromStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official h Lajv;h(Laip;)Lnf;
      intermediary method_13667 Lnet/minecraft/class_1076;method_13667(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1653;
      named getEntityIdentifierFromStack Lnet/minecraft/item/SpawnEggItem;getEntityIdentifierFromStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Identifier;