Class FabricEntityTypeBuilder.Living<T extends net.minecraft.world.entity.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 net.minecraft.world.entity.Entity>
@Deprecated
public static class FabricEntityTypeBuilder.Living<T extends net.minecraft.world.entity.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 FabricEntityTypeBuilder
FabricEntityTypeBuilder.Living<T>, FabricEntityTypeBuilder.Mob<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.EntityType<T> build(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key) Deprecated.defaultAttributes(Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder> defaultAttributeBuilder) Deprecated.dimensions(net.minecraft.world.entity.EntityDimensions dimensions) Deprecated.Sets the dimensions of this entity type.Deprecated.Deprecated.Whether this entity type is summonable using the/summoncommand.<N extends T>
FabricEntityTypeBuilder.Living<N> entityFactory(net.minecraft.world.entity.EntityType.EntityFactory<N> factory) Deprecated.Deprecated.Sets this entity type to be fire immune.forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated.mobCategory(net.minecraft.world.entity.MobCategory category) Deprecated.Deprecated.Sets whether this entity type can be spawned far away from a player.specificSpawnBlocks(net.minecraft.world.level.block.Block... blocks) Deprecated.Sets theImmutableSetof 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 FabricEntityTypeBuilder
create, create, create, createLiving, createMob, requires
-
Constructor Details
-
Living
protected Living(net.minecraft.world.entity.MobCategory mobCategory, net.minecraft.world.entity.EntityType.EntityFactory<T> function) Deprecated.
-
-
Method Details
-
mobCategory
public FabricEntityTypeBuilder.Living<T> mobCategory(net.minecraft.world.entity.MobCategory category) Deprecated.- Overrides:
mobCategoryin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
entityFactory
public <N extends T> FabricEntityTypeBuilder.Living<N> entityFactory(net.minecraft.world.entity.EntityType.EntityFactory<N> factory) Deprecated.- Overrides:
entityFactoryin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
disableSummon
Deprecated.Description copied from class:FabricEntityTypeBuilderWhether this entity type is summonable using the/summoncommand.- Overrides:
disableSummonin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Returns:
- this builder for chaining
-
disableSaving
Deprecated.- Overrides:
disableSavingin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
fireImmune
Deprecated.Description copied from class:FabricEntityTypeBuilderSets this entity type to be fire immune.- Overrides:
fireImmunein classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Returns:
- this builder for chaining
-
spawnableFarFromPlayer
Deprecated.Description copied from class:FabricEntityTypeBuilderSets whether this entity type can be spawned far away from a player.- Overrides:
spawnableFarFromPlayerin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Returns:
- this builder for chaining
-
dimensions
public FabricEntityTypeBuilder.Living<T> dimensions(net.minecraft.world.entity.EntityDimensions dimensions) Deprecated.Description copied from class:FabricEntityTypeBuilderSets the dimensions of this entity type.- Overrides:
dimensionsin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.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:
trackablein classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
trackable
@Deprecated public FabricEntityTypeBuilder.Living<T> trackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
trackablein classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
trackRangeChunks
Deprecated.Description copied from class:FabricEntityTypeBuilderSets the maximum chunk tracking range of this entity type.- Overrides:
trackRangeChunksin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Parameters:
range- the tracking range in chunks- Returns:
- this builder for chaining
-
trackRangeBlocks
Deprecated.Description copied from class:FabricEntityTypeBuilderSets the maximum block range at which players can see this entity type.- Overrides:
trackRangeBlocksin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Parameters:
range- the tracking range in blocks- Returns:
- this builder for chaining
-
trackedUpdateRate
Deprecated.- Overrides:
trackedUpdateRatein classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
forceTrackedVelocityUpdates
public FabricEntityTypeBuilder.Living<T> forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
forceTrackedVelocityUpdatesin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>
-
specificSpawnBlocks
public FabricEntityTypeBuilder.Living<T> specificSpawnBlocks(net.minecraft.world.level.block.Block... blocks) Deprecated.Description copied from class:FabricEntityTypeBuilderSets theImmutableSetof blocks this entity can spawn on.- Overrides:
specificSpawnBlocksin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Parameters:
blocks- the blocks the entity can spawn on- Returns:
- this builder for chaining
-
defaultAttributes
@Deprecated public FabricEntityTypeBuilder.Living<T> defaultAttributes(Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.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() .mobCategory(MobCategory.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 public net.minecraft.world.entity.EntityType<T> build(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key) Deprecated.Description copied from class:FabricEntityTypeBuilderCreates the entity type.- Overrides:
buildin classFabricEntityTypeBuilder<T extends net.minecraft.world.entity.LivingEntity>- Returns:
- a new
EntityType
-
invalid reference