net.minecraft.world.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

FeatureElement, ItemLike

cod
net.minecraft.world.item.SpawnEggItem
net.minecraft.class_1826
net.minecraft.item.SpawnEggItem
net.minecraft.src.C_1420_
net.minecraft.world.item.ItemMonsterEgg

Field summary

Modifier and TypeField
private static final Map<EntityType<? extends Mob>, SpawnEggItem>
a
BY_ID
field_8914
SPAWN_EGGS
f_43201_
private final int
b
backgroundColor
field_8916
primaryColor
f_151200_
private final int
c
highlightColor
field_8915
secondaryColor
f_151201_
private final EntityType<?>
d
defaultType
field_8917
type
f_43204_

Constructor summary

ModifierConstructor
public (EntityType<? extends Mob> type, int primaryColor, int secondaryColor, Item$Properties settings)

Method summary

Modifier and TypeMethod
public InteractionResult
a(cpj arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
public InteractionResultHolder<ItemStack>
a(ctp arg0, cfi arg1, bka arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World arg0, PlayerEntity arg1, Hand arg2)
m_7203_(C_1596_ p_43226_, C_1141_ p_43227_, C_470_ arg2)
public boolean
a(sn arg0, blz<?> arg1)
spawnsEntity(CompoundTag arg0, EntityType<?> arg1)
method_8018(class_2487 arg0, class_1299<?> arg1)
isOfSameEntityType(NbtCompound nbt, EntityType<?> type)
m_43230_(C_4917_ p_43232_, C_513_<?> arg1)
public int
a(int arg0)
getColor(int arg0)
method_8016(int arg0)
getColor(int tintIndex)
m_43211_(int arg0)
public static SpawnEggItem
a(blz<?> arg0)
byId(EntityType<?> arg0)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
m_43213_(C_513_<?> p_43214_)
public static Iterable<SpawnEggItem>
h()
eggs()
method_8017()
getAll()
m_43233_()
public EntityType<?>
a(sn arg0)
getType(CompoundTag arg0)
method_8015(class_2487 arg0)
getEntityType(NbtCompound nbt)
m_43228_(C_4917_ arg0)
public FeatureFlagSet
m()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()
public Optional<Mob>
a(cfi arg0, bmn arg1, blz<? extends bmn> arg2, and arg3, elt arg4, cmy arg5)
spawnOffspringFromSpawnEgg(Player arg0, Mob arg1, EntityType<? extends Mob> arg2, ServerLevel arg3, Vec3 arg4, ItemStack arg5)
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)
m_43215_(C_1141_ p_43217_, C_526_ p_43218_, C_513_<? extends C_526_> p_43219_, C_12_ p_43220_, C_3046_ p_43221_, C_1391_ arg5)