Class FabricEntityTypeBuilder.Living<T extends LivingEntity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder<T>
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder.Living<T>
- Type Parameters:
T
- Entity class.
- Direct Known Subclasses:
FabricEntityTypeBuilder.Mob
- Enclosing class:
FabricEntityTypeBuilder<T extends Entity>
@Deprecated
public static class FabricEntityTypeBuilder.Living<T extends LivingEntity>
extends FabricEntityTypeBuilder<T>
Deprecated.
An extended version of
FabricEntityTypeBuilder
with support for features on present on living entities
, such as default attributes.-
Nested Class Summary
Nested classes/interfaces inherited from class net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder
FabricEntityTypeBuilder.Living<T extends LivingEntity>, FabricEntityTypeBuilder.Mob<T extends MobEntity>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Living
(SpawnGroup spawnGroup, EntityType.EntityFactory<T> function) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild
(RegistryKey<EntityType<?>> key) Deprecated.defaultAttributes
(Supplier<DefaultAttributeContainer.Builder> defaultAttributeBuilder) Deprecated.dimensions
(EntityDimensions dimensions) Deprecated.Sets the dimensions of this entity type.Deprecated.Deprecated.Whether this entity type is summonable using the/summon
command.<N extends T>
FabricEntityTypeBuilder.Living<N> entityFactory
(EntityType.EntityFactory<N> factory) Deprecated.Deprecated.Sets this entity type to be fire immune.forceTrackedVelocityUpdates
(boolean forceTrackedVelocityUpdates) Deprecated.Deprecated.Sets whether this entity type can be spawned far away from a player.spawnGroup
(SpawnGroup group) Deprecated.specificSpawnBlocks
(Block... blocks) Deprecated.Sets theImmutableSet
of blocks this entity can spawn on.trackable
(int trackRangeBlocks, int trackedUpdateRate) Deprecated.trackable
(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated.trackedUpdateRate
(int rate) Deprecated.trackRangeBlocks
(int range) Deprecated.Sets the maximum block range at which players can see this entity type.trackRangeChunks
(int range) Deprecated.Sets the maximum chunk tracking range of this entity type.Methods inherited from class net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder
create, create, create, createLiving, createMob, requires
-
Constructor Details
-
Living
Deprecated.
-
-
Method Details
-
spawnGroup
Deprecated.- Overrides:
spawnGroup
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
entityFactory
public <N extends T> FabricEntityTypeBuilder.Living<N> entityFactory(EntityType.EntityFactory<N> factory) Deprecated.- Overrides:
entityFactory
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
disableSummon
Deprecated.Description copied from class:FabricEntityTypeBuilder
Whether this entity type is summonable using the/summon
command.- Overrides:
disableSummon
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Returns:
- this builder for chaining
-
disableSaving
Deprecated.- Overrides:
disableSaving
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
fireImmune
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets this entity type to be fire immune.- Overrides:
fireImmune
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Returns:
- this builder for chaining
-
spawnableFarFromPlayer
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets whether this entity type can be spawned far away from a player.- Overrides:
spawnableFarFromPlayer
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Returns:
- this builder for chaining
-
dimensions
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets the dimensions of this entity type.- Overrides:
dimensions
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Parameters:
dimensions
- the dimensions representing the entity's size- Returns:
- this builder for chaining
-
trackable
@Deprecated public FabricEntityTypeBuilder.Living<T> trackable(int trackRangeBlocks, int trackedUpdateRate) Deprecated.- Overrides:
trackable
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
trackable
@Deprecated public FabricEntityTypeBuilder.Living<T> trackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
trackable
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
trackRangeChunks
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets the maximum chunk tracking range of this entity type.- Overrides:
trackRangeChunks
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Parameters:
range
- the tracking range in chunks- Returns:
- this builder for chaining
-
trackRangeBlocks
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets the maximum block range at which players can see this entity type.- Overrides:
trackRangeBlocks
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Parameters:
range
- the tracking range in blocks- Returns:
- this builder for chaining
-
trackedUpdateRate
Deprecated.- Overrides:
trackedUpdateRate
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
forceTrackedVelocityUpdates
public FabricEntityTypeBuilder.Living<T> forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
forceTrackedVelocityUpdates
in classFabricEntityTypeBuilder<T extends LivingEntity>
-
specificSpawnBlocks
Deprecated.Description copied from class:FabricEntityTypeBuilder
Sets theImmutableSet
of blocks this entity can spawn on.- Overrides:
specificSpawnBlocks
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Parameters:
blocks
- the blocks the entity can spawn on- Returns:
- this builder for chaining
-
defaultAttributes
@Deprecated public FabricEntityTypeBuilder.Living<T> defaultAttributes(Supplier<DefaultAttributeContainer.Builder> defaultAttributeBuilder) Deprecated.Sets the default attributes for a type of living entity.This can be used in a fashion similar to this:
FabricEntityTypeBuilder.createLiving() .spawnGroup(SpawnGroup.CREATURE) .entityFactory(MyCreature::new) .defaultAttributes(LivingEntity::createLivingAttributes) ... .build();
- Parameters:
defaultAttributeBuilder
- a function to generate the default attribute builder from the entity type- Returns:
- this builder for chaining
-
build
Deprecated.Description copied from class:FabricEntityTypeBuilder
Creates the entity type.- Overrides:
build
in classFabricEntityTypeBuilder<T extends LivingEntity>
- Returns:
- a new
EntityType
-
invalid reference