net.minecraft.world.entity

public class EntityType<T extends Entity>

implements EntityTypeTest<Entity, T>

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