Package net.minecraft.item
Class SpawnEggItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.SpawnEggItem
- Mappings:
Namespace Name official anlintermediary net/minecraft/class_1076named net/minecraft/item/SpawnEggItem
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsintgetDisplayColor(ItemStack stack, int color) getDisplayName(ItemStack stack) static Entitymethod_4628(World world, int int2, double double2, double double3, double double4) onStartUse(ItemStack stack, World world, PlayerEntity player) booleanMethods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onUseStopped, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient
-
Constructor Details
-
SpawnEggItem
public SpawnEggItem()- Mappings:
Namespace Name Mixin selector official <init>Lalq;<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 aLalq;a(Lamj;)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;
-
getDisplayColor
- Overrides:
getDisplayColorin classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;I)Iintermediary method_3344Lnet/minecraft/class_1069;method_3344(Lnet/minecraft/class_1071;I)Inamed getDisplayColorLnet/minecraft/item/Item;getDisplayColor(Lnet/minecraft/item/ItemStack;I)I
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ) - Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;Lahd;Laqu;Ldt;Lej;FFF)Zintermediary method_3355Lnet/minecraft/class_1069;method_3355(Lnet/minecraft/class_1071;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
onStartUse
- Overrides:
onStartUsein classItem- Mappings:
Namespace Name Mixin selector official aLalq;a(Lamj;Laqu;Lahd;)Lamj;intermediary method_3358Lnet/minecraft/class_1069;method_3358(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Lnet/minecraft/class_1071;named onStartUseLnet/minecraft/item/Item;onStartUse(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
method_4628
public static Entity method_4628(World world, int int2, double double2, double double3, double double4) - Mappings:
Namespace Name Mixin selector official aLanl;a(Laqu;IDDD)Lwv;intermediary method_4628Lnet/minecraft/class_1076;method_4628(Lnet/minecraft/class_1150;IDDD)Lnet/minecraft/class_864;named method_4628Lnet/minecraft/item/SpawnEggItem;method_4628(Lnet/minecraft/world/World;IDDD)Lnet/minecraft/entity/Entity;
-
appendItemStacks
Registers an item's sub items- Overrides:
appendItemStacksin classItem- Parameters:
item- The Item instancegroup- The ItemGrouplist- The list of sub items- Mappings:
Namespace Name Mixin selector official aLalq;a(Lalq;Lakf;Ljava/util/List;)Vintermediary method_3345Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-