Package net.minecraft.entity
Class EntityType<T extends Entity>
- All Implemented Interfaces:
IForgeRegistryEntry<EntityType<?>>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
EntityType.Builder<T extends Entity>
static interface
EntityType.IFactory<T extends Entity>
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityType<AreaEffectCloudEntity>
static final EntityType<ArmorStandEntity>
static final EntityType<ArrowEntity>
static final EntityType<BatEntity>
static final EntityType<BeeEntity>
static final EntityType<BlazeEntity>
static final EntityType<BoatEntity>
private final boolean
static final EntityType<CatEntity>
private final EntityClassification
static final EntityType<CaveSpiderEntity>
static final EntityType<ChestMinecartEntity>
static final EntityType<ChickenEntity>
private final int
static final EntityType<CodEntity>
static final EntityType<CommandBlockMinecartEntity>
static final EntityType<CowEntity>
static final EntityType<CreeperEntity>
private final BiFunction<FMLPlayMessages.SpawnEntity,
World, T> private ITextComponent
private String
private final EntitySize
static final EntityType<DolphinEntity>
static final EntityType<DonkeyEntity>
static final EntityType<DragonFireballEntity>
static final EntityType<DrownedEntity>
static final EntityType<EggEntity>
static final EntityType<ElderGuardianEntity>
static final EntityType<EnderCrystalEntity>
static final EntityType<EnderDragonEntity>
static final EntityType<EnderPearlEntity>
static final EntityType<EndermanEntity>
static final EntityType<EndermiteEntity>
static final EntityType<EvokerEntity>
static final EntityType<EvokerFangsEntity>
static final EntityType<ExperienceBottleEntity>
static final EntityType<ExperienceOrbEntity>
static final EntityType<EyeOfEnderEntity>
private final EntityType.IFactory<T>
static final EntityType<FallingBlockEntity>
static final EntityType<FireballEntity>
private final boolean
static final EntityType<FireworkRocketEntity>
static final EntityType<FishingBobberEntity>
static final EntityType<FoxEntity>
static final EntityType<FurnaceMinecartEntity>
static final EntityType<GhastEntity>
static final EntityType<GiantEntity>
static final EntityType<GuardianEntity>
static final EntityType<HoglinEntity>
static final EntityType<HopperMinecartEntity>
static final EntityType<HorseEntity>
static final EntityType<HuskEntity>
static final EntityType<IllusionerEntity>
private final com.google.common.collect.ImmutableSet<Block>
static final EntityType<IronGolemEntity>
static final EntityType<ItemEntity>
static final EntityType<ItemFrameEntity>
static final EntityType<LeashKnotEntity>
static final EntityType<LightningBoltEntity>
static final EntityType<LlamaEntity>
static final EntityType<LlamaSpitEntity>
private static final org.apache.logging.log4j.Logger
private ResourceLocation
static final EntityType<MagmaCubeEntity>
static final EntityType<MinecartEntity>
static final EntityType<MooshroomEntity>
static final EntityType<MuleEntity>
static final EntityType<OcelotEntity>
static final EntityType<PaintingEntity>
static final EntityType<PandaEntity>
static final EntityType<ParrotEntity>
static final EntityType<PhantomEntity>
static final EntityType<PigEntity>
static final EntityType<PiglinEntity>
static final EntityType<PiglinBruteEntity>
static final EntityType<PillagerEntity>
static final EntityType<PlayerEntity>
static final EntityType<PolarBearEntity>
static final EntityType<PotionEntity>
static final EntityType<PufferfishEntity>
static final EntityType<RabbitEntity>
static final EntityType<RavagerEntity>
private final ReverseTagWrapper<EntityType<?>>
static final EntityType<SalmonEntity>
private final boolean
static final EntityType<SheepEntity>
static final EntityType<ShulkerEntity>
static final EntityType<ShulkerBulletEntity>
static final EntityType<SilverfishEntity>
static final EntityType<SkeletonEntity>
static final EntityType<SkeletonHorseEntity>
static final EntityType<SlimeEntity>
static final EntityType<SmallFireballEntity>
static final EntityType<SnowGolemEntity>
static final EntityType<SnowballEntity>
static final EntityType<SpawnerMinecartEntity>
static final EntityType<SpectralArrowEntity>
static final EntityType<SpiderEntity>
static final EntityType<SquidEntity>
static final EntityType<StrayEntity>
static final EntityType<StriderEntity>
private final boolean
static final EntityType<TNTEntity>
static final EntityType<TNTMinecartEntity>
private final ToIntFunction<EntityType<?>>
static final EntityType<TraderLlamaEntity>
static final EntityType<TridentEntity>
static final EntityType<TropicalFishEntity>
static final EntityType<TurtleEntity>
private final int
private final ToIntFunction<EntityType<?>>
private final Predicate<EntityType<?>>
static final EntityType<VexEntity>
static final EntityType<VillagerEntity>
static final EntityType<VindicatorEntity>
static final EntityType<WanderingTraderEntity>
static final EntityType<WitchEntity>
static final EntityType<WitherEntity>
static final EntityType<WitherSkeletonEntity>
static final EntityType<WitherSkullEntity>
static final EntityType<WolfEntity>
static final EntityType<ZoglinEntity>
static final EntityType<ZombieEntity>
static final EntityType<ZombieHorseEntity>
static final EntityType<ZombieVillagerEntity>
static final EntityType<ZombifiedPiglinEntity>
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorDescriptionEntityType
(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, com.google.common.collect.ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_) EntityType
(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, com.google.common.collect.ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_, Predicate<EntityType<?>> velocityUpdateSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier, BiFunction<FMLPlayMessages.SpawnEntity, World, T> customClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<EntityType<?>>
by
(CompoundNBT p_220347_0_) static Optional<EntityType<?>>
boolean
boolean
boolean
int
static Entity
create
(CompoundNBT p_220330_0_, World p_220330_1_) create
(ServerWorld p_220349_1_, CompoundNBT p_220349_2_, ITextComponent p_220349_3_, PlayerEntity p_220349_4_, BlockPos p_220349_5_, SpawnReason p_220349_6_, boolean p_220349_7_, boolean p_220349_8_) private static Entity
create
(World p_200719_0_, EntityType<?> p_200719_1_) customClientSpawn
(FMLPlayMessages.SpawnEntity packet, World world) private int
private int
private boolean
boolean
getAABB
(double p_220328_1_, double p_220328_3_, double p_220328_5_) float
static ResourceLocation
getKey
(EntityType<?> p_200718_0_) getTags()
Retrieves a list of tags names this is known to be associated with.float
getWidth()
protected static double
getYOffset
(IWorldReader p_208051_0_, BlockPos p_208051_1_, boolean p_208051_2_, AxisAlignedBB p_208051_3_) boolean
is
(ITag<EntityType<?>> p_220341_1_) boolean
isBlockDangerous
(BlockState p_233597_1_) static Entity
loadEntityRecursive
(CompoundNBT p_220335_0_, World p_220335_1_, Function<Entity, Entity> p_220335_2_) loadStaticEntity
(CompoundNBT p_220343_0_, World p_220343_1_) private static <T extends Entity>
EntityType<T>register
(String p_200712_0_, EntityType.Builder<T> p_200712_1_) spawn
(ServerWorld p_220331_1_, ItemStack p_220331_2_, PlayerEntity p_220331_3_, BlockPos p_220331_4_, SpawnReason p_220331_5_, boolean p_220331_6_, boolean p_220331_7_) spawn
(ServerWorld p_220342_1_, CompoundNBT p_220342_2_, ITextComponent p_220342_3_, PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) toString()
boolean
static void
updateCustomEntityTag
(World p_208048_0_, PlayerEntity p_208048_1_, Entity p_208048_2_, CompoundNBT p_208048_3_) int
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
AREA_EFFECT_CLOUD
-
ARMOR_STAND
-
ARROW
-
BAT
-
BEE
-
BLAZE
-
BOAT
-
CAT
-
CAVE_SPIDER
-
CHICKEN
-
COD
-
COW
-
CREEPER
-
DOLPHIN
-
DONKEY
-
DRAGON_FIREBALL
-
DROWNED
-
ELDER_GUARDIAN
-
END_CRYSTAL
-
ENDER_DRAGON
-
ENDERMAN
-
ENDERMITE
-
EVOKER
-
EVOKER_FANGS
-
EXPERIENCE_ORB
-
EYE_OF_ENDER
-
FALLING_BLOCK
-
FIREWORK_ROCKET
-
FOX
-
GHAST
-
GIANT
-
GUARDIAN
-
HOGLIN
-
HORSE
-
HUSK
-
ILLUSIONER
-
IRON_GOLEM
-
ITEM
-
ITEM_FRAME
-
FIREBALL
-
LEASH_KNOT
-
LIGHTNING_BOLT
-
LLAMA
-
LLAMA_SPIT
-
MAGMA_CUBE
-
MINECART
-
CHEST_MINECART
-
COMMAND_BLOCK_MINECART
-
FURNACE_MINECART
-
HOPPER_MINECART
-
SPAWNER_MINECART
-
TNT_MINECART
-
MULE
-
MOOSHROOM
-
OCELOT
-
PAINTING
-
PANDA
-
PARROT
-
PHANTOM
-
PIG
-
PIGLIN
-
PIGLIN_BRUTE
-
PILLAGER
-
POLAR_BEAR
-
TNT
-
PUFFERFISH
-
RABBIT
-
RAVAGER
-
SALMON
-
SHEEP
-
SHULKER
-
SHULKER_BULLET
-
SILVERFISH
-
SKELETON
-
SKELETON_HORSE
-
SLIME
-
SMALL_FIREBALL
-
SNOW_GOLEM
-
SNOWBALL
-
SPECTRAL_ARROW
-
SPIDER
-
SQUID
-
STRAY
-
STRIDER
-
EGG
-
ENDER_PEARL
-
EXPERIENCE_BOTTLE
-
POTION
-
TRIDENT
-
TRADER_LLAMA
-
TROPICAL_FISH
-
TURTLE
-
VEX
-
VILLAGER
-
VINDICATOR
-
WANDERING_TRADER
-
WITCH
-
WITHER
-
WITHER_SKELETON
-
WITHER_SKULL
-
WOLF
-
ZOGLIN
-
ZOMBIE
-
ZOMBIE_HORSE
-
ZOMBIE_VILLAGER
-
ZOMBIFIED_PIGLIN
-
PLAYER
-
FISHING_BOBBER
-
factory
-
category
-
immuneTo
-
serialize
private final boolean serialize -
summon
private final boolean summon -
fireImmune
private final boolean fireImmune -
canSpawnFarFromPlayer
private final boolean canSpawnFarFromPlayer -
clientTrackingRange
private final int clientTrackingRange -
updateInterval
private final int updateInterval -
descriptionId
-
description
-
lootTable
-
dimensions
-
velocityUpdateSupplier
-
trackingRangeSupplier
-
updateIntervalSupplier
-
customClientFactory
-
reverseTags
-
-
Constructor Details
-
EntityType
public EntityType(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, com.google.common.collect.ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_) -
EntityType
public EntityType(EntityType.IFactory<T> p_i231489_1_, EntityClassification p_i231489_2_, boolean p_i231489_3_, boolean p_i231489_4_, boolean p_i231489_5_, boolean p_i231489_6_, com.google.common.collect.ImmutableSet<Block> p_i231489_7_, EntitySize p_i231489_8_, int p_i231489_9_, int p_i231489_10_, Predicate<EntityType<?>> velocityUpdateSupplier, ToIntFunction<EntityType<?>> trackingRangeSupplier, ToIntFunction<EntityType<?>> updateIntervalSupplier, BiFunction<FMLPlayMessages.SpawnEntity, World, T> customClientFactory)
-
-
Method Details
-
register
private static <T extends Entity> EntityType<T> register(String p_200712_0_, EntityType.Builder<T> p_200712_1_) -
getKey
-
byString
-
spawn
@Nullable public Entity spawn(ServerWorld p_220331_1_, @Nullable ItemStack p_220331_2_, @Nullable PlayerEntity p_220331_3_, BlockPos p_220331_4_, SpawnReason p_220331_5_, boolean p_220331_6_, boolean p_220331_7_) -
spawn
@Nullable public T spawn(ServerWorld p_220342_1_, @Nullable CompoundNBT p_220342_2_, @Nullable ITextComponent p_220342_3_, @Nullable PlayerEntity p_220342_4_, BlockPos p_220342_5_, SpawnReason p_220342_6_, boolean p_220342_7_, boolean p_220342_8_) -
create
@Nullable public T create(ServerWorld p_220349_1_, @Nullable CompoundNBT p_220349_2_, @Nullable ITextComponent p_220349_3_, @Nullable PlayerEntity p_220349_4_, BlockPos p_220349_5_, SpawnReason p_220349_6_, boolean p_220349_7_, boolean p_220349_8_) -
getYOffset
protected static double getYOffset(IWorldReader p_208051_0_, BlockPos p_208051_1_, boolean p_208051_2_, AxisAlignedBB p_208051_3_) -
updateCustomEntityTag
public static void updateCustomEntityTag(World p_208048_0_, @Nullable PlayerEntity p_208048_1_, @Nullable Entity p_208048_2_, @Nullable CompoundNBT p_208048_3_) -
canSerialize
public boolean canSerialize() -
canSummon
public boolean canSummon() -
fireImmune
public boolean fireImmune() -
canSpawnFarFromPlayer
public boolean canSpawnFarFromPlayer() -
getCategory
-
getDescriptionId
-
getDescription
-
toString
-
getDefaultLootTable
-
getWidth
public float getWidth() -
getHeight
public float getHeight() -
create
-
create
-
create
-
create
-
getAABB
-
isBlockDangerous
-
getDimensions
-
by
-
loadEntityRecursive
-
loadStaticEntity
-
clientTrackingRange
public int clientTrackingRange() -
defaultTrackingRangeSupplier
private int defaultTrackingRangeSupplier() -
updateInterval
public int updateInterval() -
defaultUpdateIntervalSupplier
private int defaultUpdateIntervalSupplier() -
trackDeltas
public boolean trackDeltas() -
defaultVelocitySupplier
private boolean defaultVelocitySupplier() -
is
-
customClientSpawn
-
getTags
Retrieves a list of tags names this is known to be associated with. This should be used in favor of TagCollection.getOwningTags, as this caches the result and automatically updates when the TagCollection changes.
-