net.minecraft.world.entity

public class EntityType<T extends Entity>

implements EntityTypeTest<Entity, T>

bau
net.minecraft.world.entity.EntityType
net.minecraft.class_1299
net.minecraft.entity.EntityType
net.minecraft.src.C_513_
net.minecraft.world.entity.EntityTypes

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
bp
LOGGER
field_6088
LOGGER
f_20534_
public static final String
a
ENTITY_TAG
field_30053
ENTITY_TAG_KEY
f_147037_
private final Holder$Reference<EntityType<?>>
bq
builtInRegistryHolder
field_36398
registryEntry
f_204038_
private static final float
br
MAGIC_HORSE_WIDTH
field_30054
field_30054
f_147038_
public static final EntityType<Allay>
b
ALLAY
field_38384
ALLAY
f_217014_
public static final EntityType<AreaEffectCloud>
c
AREA_EFFECT_CLOUD
field_6083
AREA_EFFECT_CLOUD
f_20476_
public static final EntityType<ArmorStand>
d
ARMOR_STAND
field_6131
ARMOR_STAND
f_20529_
public static final EntityType<Arrow>
e
ARROW
field_6122
ARROW
f_20548_
public static final EntityType<Axolotl>
f
AXOLOTL
field_28315
AXOLOTL
f_147039_
public static final EntityType<Bat>
g
BAT
field_6108
BAT
f_20549_
public static final EntityType<Bee>
h
BEE
field_20346
BEE
f_20550_
public static final EntityType<Blaze>
i
BLAZE
field_6099
BLAZE
f_20551_
public static final EntityType<Boat>
j
BOAT
field_6121
BOAT
f_20552_
public static final EntityType<ChestBoat>
k
CHEST_BOAT
field_38096
CHEST_BOAT
f_217016_
public static final EntityType<Cat>
l
CAT
field_16281
CAT
f_20553_
public static final EntityType<CaveSpider>
m
CAVE_SPIDER
field_6084
CAVE_SPIDER
f_20554_
public static final EntityType<Chicken>
n
CHICKEN
field_6132
CHICKEN
f_20555_
public static final EntityType<Cod>
o
COD
field_6070
COD
f_20556_
public static final EntityType<Cow>
p
COW
field_6085
COW
f_20557_
public static final EntityType<Creeper>
q
CREEPER
field_6046
CREEPER
f_20558_
public static final EntityType<Dolphin>
r
DOLPHIN
field_6087
DOLPHIN
f_20559_
public static final EntityType<Donkey>
s
DONKEY
field_6067
DONKEY
f_20560_
public static final EntityType<DragonFireball>
t
DRAGON_FIREBALL
field_6129
DRAGON_FIREBALL
f_20561_
public static final EntityType<Drowned>
u
DROWNED
field_6123
DROWNED
f_20562_
public static final EntityType<ElderGuardian>
v
ELDER_GUARDIAN
field_6086
ELDER_GUARDIAN
f_20563_
public static final EntityType<EndCrystal>
w
END_CRYSTAL
field_6110
END_CRYSTAL
f_20564_
public static final EntityType<EnderDragon>
x
ENDER_DRAGON
field_6116
ENDER_DRAGON
f_20565_
public static final EntityType<EnderMan>
y
ENDERMAN
field_6091
ENDERMAN
f_20566_
public static final EntityType<Endermite>
z
ENDERMITE
field_6128
ENDERMITE
f_20567_
public static final EntityType<Evoker>
A
EVOKER
field_6090
EVOKER
f_20568_
public static final EntityType<EvokerFangs>
B
EVOKER_FANGS
field_6060
EVOKER_FANGS
f_20569_
public static final EntityType<ExperienceOrb>
C
EXPERIENCE_ORB
field_6044
EXPERIENCE_ORB
f_20570_
public static final EntityType<EyeOfEnder>
D
EYE_OF_ENDER
field_6061
EYE_OF_ENDER
f_20571_
public static final EntityType<FallingBlockEntity>
E
FALLING_BLOCK
field_6089
FALLING_BLOCK
f_20450_
public static final EntityType<FireworkRocketEntity>
F
FIREWORK_ROCKET
field_6133
FIREWORK_ROCKET
f_20451_
public static final EntityType<Fox>
G
FOX
field_17943
FOX
f_20452_
public static final EntityType<Frog>
H
FROG
field_37419
FROG
f_217012_
public static final EntityType<Ghast>
I
GHAST
field_6107
GHAST
f_20453_
public static final EntityType<Giant>
J
GIANT
field_6095
GIANT
f_20454_
public static final EntityType<GlowItemFrame>
K
GLOW_ITEM_FRAME
field_28401
GLOW_ITEM_FRAME
f_147033_
public static final EntityType<GlowSquid>
L
GLOW_SQUID
field_28402
GLOW_SQUID
f_147034_
public static final EntityType<Goat>
M
GOAT
field_30052
GOAT
f_147035_
public static final EntityType<Guardian>
N
GUARDIAN
field_6118
GUARDIAN
f_20455_
public static final EntityType<Hoglin>
O
HOGLIN
field_21973
HOGLIN
f_20456_
public static final EntityType<Horse>
P
HORSE
field_6139
HORSE
f_20457_
public static final EntityType<Husk>
Q
HUSK
field_6071
HUSK
f_20458_
public static final EntityType<Illusioner>
R
ILLUSIONER
field_6065
ILLUSIONER
f_20459_
public static final EntityType<IronGolem>
S
IRON_GOLEM
field_6147
IRON_GOLEM
f_20460_
public static final EntityType<ItemEntity>
T
ITEM
field_6052
ITEM
f_20461_
public static final EntityType<ItemFrame>
U
ITEM_FRAME
field_6043
ITEM_FRAME
f_20462_
public static final EntityType<LargeFireball>
V
FIREBALL
field_6066
FIREBALL
f_20463_
public static final EntityType<LeashFenceKnotEntity>
W
LEASH_KNOT
field_6138
LEASH_KNOT
f_20464_
public static final EntityType<LightningBolt>
X
LIGHTNING_BOLT
field_6112
LIGHTNING_BOLT
f_20465_
public static final EntityType<Llama>
Y
LLAMA
field_6074
LLAMA
f_20466_
public static final EntityType<LlamaSpit>
Z
LLAMA_SPIT
field_6124
LLAMA_SPIT
f_20467_
public static final EntityType<MagmaCube>
aa
MAGMA_CUBE
field_6102
MAGMA_CUBE
f_20468_
public static final EntityType<Marker>
ab
MARKER
field_33456
MARKER
f_147036_
public static final EntityType<Minecart>
ac
MINECART
field_6096
MINECART
f_20469_
public static final EntityType<MinecartChest>
ad
CHEST_MINECART
field_6126
CHEST_MINECART
f_20470_
public static final EntityType<MinecartCommandBlock>
ae
COMMAND_BLOCK_MINECART
field_6136
COMMAND_BLOCK_MINECART
f_20471_
public static final EntityType<MinecartFurnace>
af
FURNACE_MINECART
field_6080
FURNACE_MINECART
f_20472_
public static final EntityType<MinecartHopper>
ag
HOPPER_MINECART
field_6058
HOPPER_MINECART
f_20473_
public static final EntityType<MinecartSpawner>
ah
SPAWNER_MINECART
field_6142
SPAWNER_MINECART
f_20474_
public static final EntityType<MinecartTNT>
ai
TNT_MINECART
field_6053
TNT_MINECART
f_20475_
public static final EntityType<Mule>
aj
MULE
field_6057
MULE
f_20503_
public static final EntityType<MushroomCow>
ak
MOOSHROOM
field_6143
MOOSHROOM
f_20504_
public static final EntityType<Ocelot>
al
OCELOT
field_6081
OCELOT
f_20505_
public static final EntityType<Painting>
am
PAINTING
field_6120
PAINTING
f_20506_
public static final EntityType<Panda>
an
PANDA
field_6146
PANDA
f_20507_
public static final EntityType<Parrot>
ao
PARROT
field_6104
PARROT
f_20508_
public static final EntityType<Phantom>
ap
PHANTOM
field_6078
PHANTOM
f_20509_
public static final EntityType<Pig>
aq
PIG
field_6093
PIG
f_20510_
public static final EntityType<Piglin>
ar
PIGLIN
field_22281
PIGLIN
f_20511_
public static final EntityType<PiglinBrute>
as
PIGLIN_BRUTE
field_25751
PIGLIN_BRUTE
f_20512_
public static final EntityType<Pillager>
at
PILLAGER
field_6105
PILLAGER
f_20513_
public static final EntityType<PolarBear>
au
POLAR_BEAR
field_6042
POLAR_BEAR
f_20514_
public static final EntityType<PrimedTnt>
av
TNT
field_6063
TNT
f_20515_
public static final EntityType<Pufferfish>
aw
PUFFERFISH
field_6062
PUFFERFISH
f_20516_
public static final EntityType<Rabbit>
ax
RABBIT
field_6140
RABBIT
f_20517_
public static final EntityType<Ravager>
ay
RAVAGER
field_6134
RAVAGER
f_20518_
public static final EntityType<Salmon>
az
SALMON
field_6073
SALMON
f_20519_
public static final EntityType<Sheep>
aA
SHEEP
field_6115
SHEEP
f_20520_
public static final EntityType<Shulker>
aB
SHULKER
field_6109
SHULKER
f_20521_
public static final EntityType<ShulkerBullet>
aC
SHULKER_BULLET
field_6100
SHULKER_BULLET
f_20522_
public static final EntityType<Silverfish>
aD
SILVERFISH
field_6125
SILVERFISH
f_20523_
public static final EntityType<Skeleton>
aE
SKELETON
field_6137
SKELETON
f_20524_
public static final EntityType<SkeletonHorse>
aF
SKELETON_HORSE
field_6075
SKELETON_HORSE
f_20525_
public static final EntityType<Slime>
aG
SLIME
field_6069
SLIME
f_20526_
public static final EntityType<SmallFireball>
aH
SMALL_FIREBALL
field_6049
SMALL_FIREBALL
f_20527_
public static final EntityType<SnowGolem>
aI
SNOW_GOLEM
field_6047
SNOW_GOLEM
f_20528_
public static final EntityType<Snowball>
aJ
SNOWBALL
field_6068
SNOWBALL
f_20477_
public static final EntityType<SpectralArrow>
aK
SPECTRAL_ARROW
field_6135
SPECTRAL_ARROW
f_20478_
public static final EntityType<Spider>
aL
SPIDER
field_6079
SPIDER
f_20479_
public static final EntityType<Squid>
aM
SQUID
field_6114
SQUID
f_20480_
public static final EntityType<Stray>
aN
STRAY
field_6098
STRAY
f_20481_
public static final EntityType<Strider>
aO
STRIDER
field_23214
STRIDER
f_20482_
public static final EntityType<Tadpole>
aP
TADPOLE
field_37420
TADPOLE
f_217013_
public static final EntityType<ThrownEgg>
aQ
EGG
field_6144
EGG
f_20483_
public static final EntityType<ThrownEnderpearl>
aR
ENDER_PEARL
field_6082
ENDER_PEARL
f_20484_
public static final EntityType<ThrownExperienceBottle>
aS
EXPERIENCE_BOTTLE
field_6064
EXPERIENCE_BOTTLE
f_20485_
public static final EntityType<ThrownPotion>
aT
POTION
field_6045
POTION
f_20486_
public static final EntityType<ThrownTrident>
aU
TRIDENT
field_6127
TRIDENT
f_20487_
public static final EntityType<TraderLlama>
aV
TRADER_LLAMA
field_17714
TRADER_LLAMA
f_20488_
public static final EntityType<TropicalFish>
aW
TROPICAL_FISH
field_6111
TROPICAL_FISH
f_20489_
public static final EntityType<Turtle>
aX
TURTLE
field_6113
TURTLE
f_20490_
public static final EntityType<Vex>
aY
VEX
field_6059
VEX
f_20491_
public static final EntityType<Villager>
aZ
VILLAGER
field_6077
VILLAGER
f_20492_
public static final EntityType<Vindicator>
ba
VINDICATOR
field_6117
VINDICATOR
f_20493_
public static final EntityType<WanderingTrader>
bb
WANDERING_TRADER
field_17713
WANDERING_TRADER
f_20494_
public static final EntityType<Warden>
bc
WARDEN
field_38095
WARDEN
f_217015_
public static final EntityType<Witch>
bd
WITCH
field_6145
WITCH
f_20495_
public static final EntityType<WitherBoss>
be
WITHER
field_6119
WITHER
f_20496_
public static final EntityType<WitherSkeleton>
bf
WITHER_SKELETON
field_6076
WITHER_SKELETON
f_20497_
public static final EntityType<WitherSkull>
bg
WITHER_SKULL
field_6130
WITHER_SKULL
f_20498_
public static final EntityType<Wolf>
bh
WOLF
field_6055
WOLF
f_20499_
public static final EntityType<Zoglin>
bi
ZOGLIN
field_23696
ZOGLIN
f_20500_
public static final EntityType<Zombie>
bj
ZOMBIE
field_6051
ZOMBIE
f_20501_
public static final EntityType<ZombieHorse>
bk
ZOMBIE_HORSE
field_6048
ZOMBIE_HORSE
f_20502_
public static final EntityType<ZombieVillager>
bl
ZOMBIE_VILLAGER
field_6054
ZOMBIE_VILLAGER
f_20530_
public static final EntityType<ZombifiedPiglin>
bm
ZOMBIFIED_PIGLIN
field_6050
ZOMBIFIED_PIGLIN
f_20531_
public static final EntityType<Player>
bn
PLAYER
field_6097
PLAYER
f_20532_
public static final EntityType<FishingHook>
bo
FISHING_BOBBER
field_6103
FISHING_BOBBER
f_20533_
private final EntityType$EntityFactory<T>
bs
factory
field_6101
factory
f_20535_
private final MobCategory
bt
category
field_6094
spawnGroup
f_20536_
private final com.google.common.collect.ImmutableSet<Block>
bu
immuneTo
field_25355
canSpawnInside
f_20537_
private final boolean
bv
serialize
field_6056
saveable
f_20538_
private final boolean
bw
summon
field_6072
summonable
f_20539_
private final boolean
bx
fireImmune
field_18981
fireImmune
f_20540_
private final boolean
by
canSpawnFarFromPlayer
field_19423
spawnableFarFromPlayer
f_20541_
private final int
bz
clientTrackingRange
field_24085
maxTrackDistance
f_20542_
private final int
bA
updateInterval
field_24086
trackTickInterval
f_20543_
private String
bB
descriptionId
field_6106
translationKey
f_20544_
private Component
bC
description
field_6092
name
f_20545_
private ResourceLocation
bD
lootTable
field_16526
lootTableId
f_20546_
private final EntityDimensions
bE
dimensions
field_18070
dimensions
f_20547_

Constructor summary

ModifierConstructor
public (EntityType$EntityFactory<T> factory, MobCategory spawnGroup, boolean saveable, boolean summonable, boolean fireImmune, boolean spawnableFarFromPlayer, com.google.common.collect.ImmutableSet<Block> canSpawnInside, EntityDimensions dimensions, int maxTrackDistance, int trackTickInterval)

Method summary

Modifier and TypeMethod
private static <T extends Entity> EntityType<T>
a(String arg0, bau$a<T> arg1)
register(String arg0, EntityType$Builder<T> arg1)
method_5895(String arg0, class_1299$class_1300<T> arg1)
register(String id, EntityType$Builder<T> type)
m_20634_(String p_20635_, C_514_<T> p_20636_)
public static ResourceLocation
a(bau<?> arg0)
getKey(EntityType<?> arg0)
method_5890(class_1299<?> arg0)
getId(EntityType<?> type)
m_20613_(C_513_<?> p_20614_)
public static Optional<EntityType<?>>
a(String arg0)
byString(String arg0)
method_5898(String arg0)
get(String id)
m_20632_(String p_20633_)
public Entity
a(afo arg0, caa arg1, btf arg2, gt arg3, bbj arg4, boolean arg5, boolean arg6)
spawn(ServerLevel arg0, ItemStack arg1, Player arg2, BlockPos arg3, MobSpawnType arg4, boolean arg5, boolean arg6)
method_5894(class_3218 arg0, class_1799 arg1, class_1657 arg2, class_2338 arg3, class_3730 arg4, boolean arg5, boolean arg6)
spawnFromItemStack(ServerWorld world, ItemStack stack, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
m_20592_(C_12_ p_20594_, C_1391_ p_20595_, C_1141_ p_20596_, C_4675_ p_20597_, C_529_ p_20598_, boolean p_20599_, boolean arg6)
public T
a(afo arg0, pj arg1, rm arg2, btf arg3, gt arg4, bbj arg5, boolean arg6, boolean arg7)
spawn(ServerLevel arg0, CompoundTag arg1, Component arg2, Player arg3, BlockPos arg4, MobSpawnType arg5, boolean arg6, boolean arg7)
method_5899(class_3218 arg0, class_2487 arg1, class_2561 arg2, class_1657 arg3, class_2338 arg4, class_3730 arg5, boolean arg6, boolean arg7)
spawn(ServerWorld world, NbtCompound itemNbt, Text name, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
m_20600_(C_12_ p_20602_, C_4917_ p_20603_, C_4996_ p_20604_, C_1141_ p_20605_, C_4675_ p_20606_, C_529_ p_20607_, boolean p_20608_, boolean arg7)
public T
b(afo arg0, pj arg1, rm arg2, btf arg3, gt arg4, bbj arg5, boolean arg6, boolean arg7)
create(ServerLevel arg0, CompoundTag arg1, Component arg2, Player arg3, BlockPos arg4, MobSpawnType arg5, boolean arg6, boolean arg7)
method_5888(class_3218 arg0, class_2487 arg1, class_2561 arg2, class_1657 arg3, class_2338 arg4, class_3730 arg5, boolean arg6, boolean arg7)
create(ServerWorld world, NbtCompound itemNbt, Text name, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
m_20655_(C_12_ p_20657_, C_4917_ p_20658_, C_4996_ p_20659_, C_1141_ p_20660_, C_4675_ p_20661_, C_529_ p_20662_, boolean p_20663_, boolean arg7)
protected static double
a(cgd arg0, gt arg1, boolean arg2, dvo arg3)
getYOffset(LevelReader arg0, BlockPos arg1, boolean arg2, AABB arg3)
method_5884(class_4538 arg0, class_2338 arg1, boolean arg2, class_238 arg3)
getOriginY(WorldView world, BlockPos pos, boolean invertY, Box boundingBox)
m_20625_(C_1599_ p_20626_, C_4675_ p_20627_, boolean p_20628_, C_3040_ p_20629_)
public static void
a(cga arg0, btf arg1, baq arg2, pj arg3)
updateCustomEntityTag(Level arg0, Player arg1, Entity arg2, CompoundTag arg3)
method_5881(class_1937 arg0, class_1657 arg1, class_1297 arg2, class_2487 arg3)
loadFromEntityNbt(World world, PlayerEntity player, Entity entity, NbtCompound itemNbt)
m_20620_(C_1596_ p_20621_, C_1141_ p_20622_, C_507_ p_20623_, C_4917_ p_20624_)
public boolean
b()
canSerialize()
method_5893()
isSaveable()
m_20584_()
public boolean
c()
canSummon()
method_5896()
isSummonable()
m_20654_()
public boolean
d()
fireImmune()
method_19946()
isFireImmune()
m_20672_()
public boolean
e()
canSpawnFarFromPlayer()
method_20814()
isSpawnableFarFromPlayer()
m_20673_()
public MobCategory
f()
getCategory()
method_5891()
getSpawnGroup()
m_20674_()
public String
g()
getDescriptionId()
method_5882()
getTranslationKey()
m_20675_()
public Component
h()
getDescription()
method_5897()
getName()
m_20676_()
public String
i()
toShortString()
method_35050()
getUntranslatedName()
m_147048_()
public ResourceLocation
j()
getDefaultLootTable()
method_16351()
getLootTableId()
m_20677_()
public float
k()
getWidth()
method_17685()
getWidth()
m_20678_()
public float
l()
getHeight()
method_17686()
getHeight()
m_20679_()
public T
a(cga arg0)
create(Level arg0)
method_5883(class_1937 arg0)
create(World world)
m_20615_(C_1596_ arg0)
public static Optional<Entity>
a(pj arg0, cga arg1)
create(CompoundTag arg0, Level arg1)
method_5892(class_2487 arg0, class_1937 arg1)
getEntityFromNbt(NbtCompound nbt, World world)
m_20642_(C_4917_ p_20643_, C_1596_ p_20644_)
public AABB
a(double arg0, double arg1, double arg2)
getAABB(double arg0, double arg1, double arg2)
method_17683(double arg0, double arg1, double arg2)
createSimpleBoundingBox(double feetX, double feetY, double feetZ)
m_20585_(double p_20587_, double arg1, double arg2)
public boolean
a(cur arg0)
isBlockDangerous(BlockState arg0)
method_29496(class_2680 arg0)
isInvalidSpawn(BlockState state)
m_20630_(C_2064_ arg0)
public EntityDimensions
m()
getDimensions()
method_18386()
getDimensions()
m_20680_()
public static Optional<EntityType<?>>
a(pj arg0)
by(CompoundTag arg0)
method_17684(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_20637_(C_4917_ p_20638_)
public static Entity
a(pj arg0, cga arg1, Function<baq, baq> arg2)
loadEntityRecursive(CompoundTag arg0, Level arg1, Function<Entity, Entity> arg2)
method_17842(class_2487 arg0, class_1937 arg1, Function<class_1297, class_1297> arg2)
loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor)
m_20645_(C_4917_ p_20646_, C_1596_ p_20647_, Function<C_507_, C_507_> p_20648_)
public static Stream<Entity>
a(List<? extends qc> arg0, cga arg1)
loadEntitiesRecursive(List<? extends Tag> arg0, Level arg1)
method_31489(List<? extends class_2520> arg0, class_1937 arg1)
streamFromNbt(List<? extends NbtElement> entityNbtList, World world)
m_147045_(List<? extends C_4950_> p_147046_, C_1596_ p_147047_)
private static Optional<Entity>
b(pj arg0, cga arg1)
loadStaticEntity(CompoundTag arg0, Level arg1)
method_17848(class_2487 arg0, class_1937 arg1)
loadEntityFromNbt(NbtCompound nbt, World world)
m_20669_(C_4917_ p_20670_, C_1596_ p_20671_)
public int
n()
clientTrackingRange()
method_18387()
getMaxTrackDistance()
m_20681_()
public int
o()
updateInterval()
method_18388()
getTrackTickInterval()
m_20682_()
public boolean
p()
trackDeltas()
method_18389()
alwaysUpdateVelocity()
m_20683_()
public boolean
a(akh<bau<?>> arg0)
is(TagKey<EntityType<?>> arg0)
method_20210(class_6862<class_1299<?>> arg0)
isIn(TagKey<EntityType<?>> tag)
m_204039_(C_203208_<C_513_<?>> arg0)
public T
a(baq arg0)
tryCast(Entity arg0)
method_31488(class_1297 arg0)
downcast(Entity arg0)
m_141992_(C_507_ arg0)
public Class<? extends Entity>
a()
getBaseClass()
method_31794()
getBaseClass()
m_142225_()
public Holder$Reference<EntityType<?>>
q()
builtInRegistryHolder()
method_40124()
getRegistryEntry()
m_204041_()