net.minecraft.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

ItemConvertible, ToggleableFeature

net.minecraft.world.item.SpawnEggItem
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)
useOn(UseOnContext context)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
private static ActionResult
spawnMob(LivingEntity user, ItemStack itemStack, Level level, BlockPos spawnPos, boolean tryMoveDown, boolean movedUp)
spawnMob(LivingEntity user, ItemStack itemStack, Level level, BlockPos spawnPos, boolean tryMoveDown, boolean movedUp)
method_73193(class_1309 arg0, class_1799 arg1, class_1937 arg2, class_2338 arg3, boolean arg4, boolean arg5)
spawnMobEntity(LivingEntity entity, ItemStack stack, World world, BlockPos pos, boolean arg4, boolean arg5)
public ActionResult
use(Level level, Player player, InteractionHand hand)
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)
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)
byId(EntityType<?> type)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
public static EntityType<?>
getType(ItemStack itemStack)
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)
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)
shouldPrintOpWarning(ItemStack stack, Player player)
method_65353(class_1799 arg0, class_1657 arg1)
shouldShowOperatorBlockWarnings(ItemStack arg0, PlayerEntity arg1)