net.minecraft.world.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

ItemLike

bna
net.minecraft.world.item.SpawnEggItem
net.minecraft.class_1826
net.minecraft.item.SpawnEggItem
net.minecraft.item.SpawnEggItem
net.minecraft.server.v1_16_R3.ItemMonsterEgg

Field summary

Modifier and TypeField
private static final Map<EntityType<?>, SpawnEggItem>
a
BY_ID
field_8914
SPAWN_EGGS
field_195987_b
private final int
b
color1
field_8916
primaryColor
field_195988_c
private final int
c
color2
field_8915
secondaryColor
field_195989_d
private final EntityType<?>
d
defaultType
field_8917
type
field_200890_d

Constructor summary

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

Method summary

Modifier and TypeMethod
public InteractionResult
a(boa arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
func_195939_a(ItemUseContext arg0)
public InteractionResultHolder<ItemStack>
a(brx arg0, bfw arg1, aot 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)
func_77659_a(World arg0, PlayerEntity arg1, Hand arg2)
public boolean
a(md arg0, aqe<?> arg1)
spawnsEntity(CompoundTag arg0, EntityType<?> arg1)
method_8018(class_2487 arg0, class_1299<?> arg1)
isOfSameEntityType(NbtCompound nbt, EntityType<?> type)
func_208077_a(CompoundNBT arg0, EntityType<?> arg1)
public static Iterable<SpawnEggItem>
f()
eggs()
method_8017()
getAll()
func_195985_g()
public EntityType<?>
a(md arg0)
getType(CompoundTag arg0)
method_8015(class_2487 arg0)
getEntityType(NbtCompound nbt)
func_208076_b(CompoundNBT arg0)
public Optional<Mob>
a(bfw arg0, aqn arg1, aqe<? extends aqn> arg2, aag arg3, dcn arg4, bmb 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)
func_234809_a_(PlayerEntity arg0, MobEntity arg1, EntityType<? extends MobEntity> arg2, ServerWorld arg3, Vector3d arg4, ItemStack arg5)
public int
a(int arg0)
getColor(int arg0)
method_8016(int arg0)
getColor(int num)
func_195983_a(int arg0)
public static SpawnEggItem
a(aqe<?> arg0)
byId(EntityType<?> arg0)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
func_200889_b(EntityType<?> arg0)