Package net.minecraft.item
Class SpawnEggItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.SpawnEggItem
- Mappings:
Namespace Name official agointermediary net/minecraft/class_1076named net/minecraft/item/SpawnEggItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreateEntity(World world, Identifier entityId, double x, double y, double z) getDisplayName(ItemStack stack) static Identifierstatic voidmethod_11406(World world, PlayerEntity player, ItemStack stack, Entity entity) voidmethod_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) method_13649(World world, PlayerEntity player, Hand hand) protected doublemethod_13666(World world, BlockPos blockPos) static voidsetEggEntity(ItemStack stack, Identifier entityId) Methods inherited from class net.minecraft.item.Item
addProperty, appendTooltip, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getDefaultStack, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3356, method_3359, method_3367, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Constructor Details
-
SpawnEggItem
public SpawnEggItem()- Mappings:
Namespace Name Mixin selector official <init>Lafh;<init>()Vintermediary <init>Lnet/minecraft/class_1069;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classItem- Mappings:
Namespace Name Mixin selector official bLafh;b(Lafj;)Ljava/lang/String;intermediary method_3383Lnet/minecraft/class_1069;method_3383(Lnet/minecraft/class_1071;)Ljava/lang/String;named getDisplayNameLnet/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:
usein classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Laay;Lajs;Lco;Lri;Lcv;FFF)Lrk;intermediary method_3355Lnet/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 useLnet/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
- Mappings:
Namespace Name Mixin selector official aLago;a(Lajs;Lco;)Dintermediary method_13666Lnet/minecraft/class_1076;method_13666(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Dnamed method_13666Lnet/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 aLago;a(Lajs;Laay;Lafj;Lsn;)Vintermediary method_11406Lnet/minecraft/class_1076;method_11406(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_1071;Lnet/minecraft/class_864;)Vnamed method_11406Lnet/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
- Overrides:
method_13649in classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lajs;Laay;Lri;)Lrl;intermediary method_13649Lnet/minecraft/class_1069;method_13649(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Lnet/minecraft/class_2963;named method_13649Lnet/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 aLago;a(Lajs;Lkq;DDD)Lsn;intermediary method_4628Lnet/minecraft/class_1076;method_4628(Lnet/minecraft/class_1150;Lnet/minecraft/class_1653;DDD)Lnet/minecraft/class_864;named createEntityLnet/minecraft/item/SpawnEggItem;createEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/Identifier;DDD)Lnet/minecraft/entity/Entity;
-
method_13648
@Environment(CLIENT) public void method_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13648in classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafh;Laej;Ldd;)Vintermediary method_13648Lnet/minecraft/class_1069;method_13648(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13648Lnet/minecraft/item/Item;method_13648(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
setEggEntity
- Mappings:
Namespace Name Mixin selector official aLago;a(Lafj;Lkq;)Vintermediary method_11405Lnet/minecraft/class_1076;method_11405(Lnet/minecraft/class_1071;Lnet/minecraft/class_1653;)Vnamed setEggEntityLnet/minecraft/item/SpawnEggItem;setEggEntity(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/Identifier;)V
-
getEntityIdentifierFromStack
- Mappings:
Namespace Name Mixin selector official hLago;h(Lafj;)Lkq;intermediary method_13667Lnet/minecraft/class_1076;method_13667(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1653;named getEntityIdentifierFromStackLnet/minecraft/item/SpawnEggItem;getEntityIdentifierFromStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Identifier;
-