net.minecraft.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

ItemConvertible, ToggleableFeature

net.minecraft.world.item.SpawnEggItem
net.minecraft.class_1826
net.minecraft.item.SpawnEggItem

Constructor summary

ModifierConstructor
public (Item$Settings properties)

Method summary

Modifier and TypeMethod
public ActionResult
useOn(UseOnContext context)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
private static ActionResult
spawnMob(EntityType<?> type, LivingEntity user, ItemStack itemStack, ServerLevel level, BlockPos spawnPos, boolean tryMoveDown, boolean movedUp)
method_73193(class_1299<?> arg0, class_1309 arg1, class_1799 arg2, class_3218 arg3, class_2338 arg4, boolean arg5, boolean arg6)
spawnMobEntity(EntityType<?> arg0, LivingEntity entity, ItemStack arg2, ServerWorld arg3, BlockPos pos, boolean arg5, boolean arg6)
public ActionResult
use(Level level, Player player, InteractionHand hand)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
public static boolean
spawnsEntity(ItemStack itemStack, EntityType<?> type)
method_8018(class_1799 arg0, class_1299<?> arg1)
isOfSameEntityType(ItemStack stack, EntityType<?> entityType)
public static Optional<RegistryEntry<Item>>
byId(EntityType<?> type)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
public static EntityType<?>
getType(ItemStack itemStack)
method_8015(class_1799 arg0)
getEntityType(ItemStack stack)
public static Optional<MobEntity>
spawnOffspringFromSpawnEgg(Player player, Mob parent, EntityType<? extends Mob> type, ServerLevel level, Vec3 pos, ItemStack spawnEggStack)
method_24793(class_1657 arg0, class_1308 arg1, class_1299<? extends class_1308> arg2, class_3218 arg3, class_243 arg4, class_1799 arg5)
spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)
public boolean
shouldPrintOpWarning(ItemStack stack, Player player)
method_65353(class_1799 arg0, class_1657 arg1)
shouldShowOperatorBlockWarnings(ItemStack arg0, PlayerEntity arg1)
private static boolean
lambda$byId$0(EntityType arg0, TypedEntityData arg1)
method_1_855(class_1299 arg0, class_11580 arg1)
method_1_855(EntityType arg0, TypedEntityData entityData)