Class FabricEntityTypeBuilder<T extends Entity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder<T>
- Direct Known Subclasses:
FabricEntityTypeBuilder.Living
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
FabricEntityTypeBuilder.Living<T extends LivingEntity>
Deprecated.useinvalid reference
EntityType.Builder#createLiving(EntityType.EntityFactory, SpawnGroup, UnaryOperator)
static class
FabricEntityTypeBuilder.Mob<T extends MobEntity>
Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FabricEntityTypeBuilder
(SpawnGroup spawnGroup, EntityType.EntityFactory<T> factory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(RegistryKey<EntityType<?>> key) Deprecated.static <T extends Entity>
FabricEntityTypeBuilder<T> create()
Deprecated.static <T extends Entity>
FabricEntityTypeBuilder<T> create
(SpawnGroup spawnGroup) Deprecated.static <T extends Entity>
FabricEntityTypeBuilder<T> create
(SpawnGroup spawnGroup, EntityType.EntityFactory<T> factory) Deprecated.static <T extends LivingEntity>
FabricEntityTypeBuilder.Living<T> static <T extends MobEntity>
FabricEntityTypeBuilder.Mob<T> dimensions
(EntityDimensions dimensions) Deprecated.Deprecated.Deprecated.<N extends T>
FabricEntityTypeBuilder<N> entityFactory
(EntityType.EntityFactory<N> factory) Deprecated.Deprecated.forceTrackedVelocityUpdates
(boolean forceTrackedVelocityUpdates) Deprecated.requires
(FeatureFlag... requiredFeatures) Deprecated.Deprecated.spawnGroup
(SpawnGroup group) Deprecated.specificSpawnBlocks
(Block... blocks) Deprecated.trackable
(int trackRangeBlocks, int trackedUpdateRate) Deprecated.trackable
(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated.trackedUpdateRate
(int rate) Deprecated.trackRangeBlocks
(int range) Deprecated.trackRangeChunks
(int range) Deprecated.
-
Constructor Details
-
FabricEntityTypeBuilder
Deprecated.
-
-
Method Details
-
create
Deprecated.Creates an entity type builder.This entity's spawn group will automatically be set to
SpawnGroup.MISC
.- Type Parameters:
T
- the type of entity- Returns:
- a new entity type builder
-
create
@Deprecated public static <T extends Entity> FabricEntityTypeBuilder<T> create(SpawnGroup spawnGroup) Deprecated.Creates an entity type builder.- Type Parameters:
T
- the type of entity- Parameters:
spawnGroup
- the entity spawn group- Returns:
- a new entity type builder
-
create
@Deprecated public static <T extends Entity> FabricEntityTypeBuilder<T> create(SpawnGroup spawnGroup, EntityType.EntityFactory<T> factory) Deprecated.Creates an entity type builder.- Type Parameters:
T
- the type of entity- Parameters:
spawnGroup
- the entity spawn groupfactory
- the entity factory used to create this entity- Returns:
- a new entity type builder
-
createLiving
Deprecated.Creates an entity type builder for a living entity.This entity's spawn group will automatically be set to
SpawnGroup.MISC
.- Type Parameters:
T
- the type of entity- Returns:
- a new living entity type builder
-
createMob
Deprecated.Creates an entity type builder for a mob entity.- Type Parameters:
T
- the type of entity- Returns:
- a new mob entity type builder
-
spawnGroup
Deprecated. -
entityFactory
@Deprecated public <N extends T> FabricEntityTypeBuilder<N> entityFactory(EntityType.EntityFactory<N> factory) Deprecated. -
disableSummon
Deprecated.Whether this entity type is summonable using the/summon
command.- Returns:
- this builder for chaining
-
disableSaving
Deprecated. -
fireImmune
Deprecated.Sets this entity type to be fire immune.- Returns:
- this builder for chaining
-
spawnableFarFromPlayer
Deprecated.Sets whether this entity type can be spawned far away from a player.- Returns:
- this builder for chaining
-
dimensions
Deprecated.Sets the dimensions of this entity type.- Parameters:
dimensions
- the dimensions representing the entity's size- Returns:
- this builder for chaining
-
trackable
@Deprecated public FabricEntityTypeBuilder<T> trackable(int trackRangeBlocks, int trackedUpdateRate) Deprecated. -
trackable
@Deprecated public FabricEntityTypeBuilder<T> trackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated. -
trackRangeChunks
Deprecated.Sets the maximum chunk tracking range of this entity type.- Parameters:
range
- the tracking range in chunks- Returns:
- this builder for chaining
-
trackRangeBlocks
Deprecated.Sets the maximum block range at which players can see this entity type.- Parameters:
range
- the tracking range in blocks- Returns:
- this builder for chaining
-
trackedUpdateRate
Deprecated. -
forceTrackedVelocityUpdates
@Deprecated public FabricEntityTypeBuilder<T> forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated. -
specificSpawnBlocks
Deprecated.Sets theImmutableSet
of blocks this entity can spawn on.- Parameters:
blocks
- the blocks the entity can spawn on- Returns:
- this builder for chaining
-
requires
Deprecated.Sets the features this entity requires. If a feature is not enabled, the entity cannot be spawned, and existing ones will despawn immediately.- Parameters:
requiredFeatures
- the features- Returns:
- this builder for chaining
-
build
Deprecated.Creates the entity type.- Returns:
- a new
EntityType
-
EntityType.Builder