net.minecraft.world.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

ItemLike

blh
net.minecraft.world.item.SpawnEggItem
net.minecraft.class_1826
net.minecraft.item.SpawnEggItem
net.minecraft.item.SpawnEggItem
net.minecraft.server.v1_16_R1.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(blv arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
func_195939_a(ItemUseContext arg0)
public InteractionResultHolder<ItemStack>
a(bqb arg0, bec arg1, anf 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(le arg0, aoq<?> arg1)
spawnsEntity(CompoundTag arg0, EntityType<?> arg1)
method_8018(class_2487 arg0, class_1299<?> arg1)
isOfSameEntityType(CompoundTag tag, EntityType<?> type)
func_208077_a(CompoundNBT arg0, EntityType<?> arg1)
public static Iterable<SpawnEggItem>
f()
eggs()
method_8017()
getAll()
func_195985_g()
public EntityType<?>
a(le arg0)
getType(CompoundTag arg0)
method_8015(class_2487 arg0)
getEntityType(CompoundTag tag)
func_208076_b(CompoundNBT arg0)
public Optional<Mob>
a(bec arg0, aoz arg1, aoq<? extends aoz> arg2, bqb arg3, dem arg4, bki arg5)
spawnOffspringFromSpawnEgg(Player arg0, Mob arg1, EntityType<? extends Mob> arg2, Level arg3, Vec3 arg4, ItemStack arg5)
method_24793(class_1657 arg0, class_1308 arg1, class_1299<? extends class_1308> arg2, class_1937 arg3, class_243 arg4, class_1799 arg5)
spawnBaby(PlayerEntity user, MobEntity arg1, EntityType<? extends MobEntity> arg2, World arg3, Vec3d arg4, ItemStack arg5)
func_234809_a_(PlayerEntity arg0, MobEntity arg1, EntityType<? extends MobEntity> arg2, World 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(aoq<?> arg0)
byId(EntityType<?> arg0)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
func_200889_b(EntityType<?> arg0)