net.minecraft.world.item

public class SpawnEggItem

extends Item

All mapped superinterfaces:

ItemLike

bdh
net.minecraft.world.item.SpawnEggItem
net.minecraft.class_1826
net.minecraft.item.SpawnEggItem
net.minecraft.item.SpawnEggItem
net.minecraft.server.v1_14_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(bdu arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
func_195939_a(ItemUseContext arg0)
public InteractionResultHolder<ItemStack>
a(bhr arg0, awg arg1, ahi 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(id arg0, ais<?> 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>
d()
eggs()
method_8017()
getAll()
func_195985_g()
public EntityType<?>
b(id arg0)
getType(CompoundTag arg0)
method_8015(class_2487 arg0)
getEntityType(CompoundTag tag)
func_208076_b(CompoundNBT arg0)
public int
a(int arg0)
getColor(int arg0)
method_8016(int arg0)
getColor(int num)
func_195983_a(int arg0)
public static SpawnEggItem
a(ais<?> arg0)
byId(EntityType<?> arg0)
method_8019(class_1299<?> arg0)
forEntity(EntityType<?> type)
func_200889_b(EntityType<?> arg0)