Class FabricEntityTypeBuilder<T extends net.minecraft.world.entity.Entity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder<T>
- Direct Known Subclasses:
FabricEntityTypeBuilder.Living
@Deprecated
public class FabricEntityTypeBuilder<T extends net.minecraft.world.entity.Entity>
extends Object
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFabricEntityTypeBuilder.Living<T extends net.minecraft.world.entity.LivingEntity>Deprecated.useinvalid reference
EntityType.Builder#createLiving(EntityType.EntityFactory, MobCategory, UnaryOperator)static classFabricEntityTypeBuilder.Mob<T extends net.minecraft.world.entity.Mob>Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFabricEntityTypeBuilder(net.minecraft.world.entity.MobCategory mobCategory, net.minecraft.world.entity.EntityType.EntityFactory<T> factory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.EntityType<T> build(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key) Deprecated.useEntityType.Builder.build(ResourceKey)static <T extends net.minecraft.world.entity.Entity>
FabricEntityTypeBuilder<T> create()Deprecated.useEntityType.Builder.createNothing(MobCategory)static <T extends net.minecraft.world.entity.Entity>
FabricEntityTypeBuilder<T> create(net.minecraft.world.entity.MobCategory mobCategory) Deprecated.useEntityType.Builder.createNothing(MobCategory)static <T extends net.minecraft.world.entity.Entity>
FabricEntityTypeBuilder<T> create(net.minecraft.world.entity.MobCategory mobCategory, net.minecraft.world.entity.EntityType.EntityFactory<T> factory) Deprecated.useEntityType.Builder.of(EntityType.EntityFactory, MobCategory)static <T extends net.minecraft.world.entity.LivingEntity>
FabricEntityTypeBuilder.Living<T> static <T extends net.minecraft.world.entity.Mob>
FabricEntityTypeBuilder.Mob<T> dimensions(net.minecraft.world.entity.EntityDimensions dimensions) Deprecated.useEntityType.Builder.sized(float, float)Deprecated.useEntityType.Builder.noSave()Deprecated.useEntityType.Builder.noSummon()<N extends T>
FabricEntityTypeBuilder<N> entityFactory(net.minecraft.world.entity.EntityType.EntityFactory<N> factory) Deprecated.Deprecated.useEntityType.Builder.fireImmune()forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated.mobCategory(net.minecraft.world.entity.MobCategory category) Deprecated.requires(net.minecraft.world.flag.FeatureFlag... requiredFeatures) Deprecated.useEntityType.Builder.requiredFeatures(FeatureFlag...)Deprecated.useEntityType.Builder.canSpawnFarFromPlayer()specificSpawnBlocks(net.minecraft.world.level.block.Block... blocks) Deprecated.useEntityType.Builder.immuneTo(Block...)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
protected FabricEntityTypeBuilder(net.minecraft.world.entity.MobCategory mobCategory, net.minecraft.world.entity.EntityType.EntityFactory<T> factory) Deprecated.
-
-
Method Details
-
create
@Deprecated public static <T extends net.minecraft.world.entity.Entity> FabricEntityTypeBuilder<T> create()Deprecated.useEntityType.Builder.createNothing(MobCategory)Creates an entity type builder.This entity's spawn group will automatically be set to
MobCategory.MISC.- Type Parameters:
T- the type of entity- Returns:
- a new entity type builder
-
create
@Deprecated public static <T extends net.minecraft.world.entity.Entity> FabricEntityTypeBuilder<T> create(net.minecraft.world.entity.MobCategory mobCategory) Deprecated.useEntityType.Builder.createNothing(MobCategory)Creates an entity type builder.- Type Parameters:
T- the type of entity- Parameters:
mobCategory- the entity mob category- Returns:
- a new entity type builder
-
create
@Deprecated public static <T extends net.minecraft.world.entity.Entity> FabricEntityTypeBuilder<T> create(net.minecraft.world.entity.MobCategory mobCategory, net.minecraft.world.entity.EntityType.EntityFactory<T> factory) Deprecated.useEntityType.Builder.of(EntityType.EntityFactory, MobCategory)Creates an entity type builder.- Type Parameters:
T- the type of entity- Parameters:
mobCategory- the entity mob categoryfactory- the entity factory used to create this entity- Returns:
- a new entity type builder
-
createLiving
@Deprecated public static <T extends net.minecraft.world.entity.LivingEntity> FabricEntityTypeBuilder.Living<T> createLiving()Deprecated.Creates an entity type builder for a living entity.This entity's spawn group will automatically be set to
MobCategory.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
-
mobCategory
@Deprecated public FabricEntityTypeBuilder<T> mobCategory(net.minecraft.world.entity.MobCategory category) Deprecated. -
entityFactory
@Deprecated public <N extends T> FabricEntityTypeBuilder<N> entityFactory(net.minecraft.world.entity.EntityType.EntityFactory<N> factory) Deprecated. -
disableSummon
Deprecated.useEntityType.Builder.noSummon()Whether this entity type is summonable using the/summoncommand.- Returns:
- this builder for chaining
-
disableSaving
Deprecated.useEntityType.Builder.noSave() -
fireImmune
Deprecated.useEntityType.Builder.fireImmune()Sets this entity type to be fire immune.- Returns:
- this builder for chaining
-
spawnableFarFromPlayer
Deprecated.useEntityType.Builder.canSpawnFarFromPlayer()Sets whether this entity type can be spawned far away from a player.- Returns:
- this builder for chaining
-
dimensions
@Deprecated public FabricEntityTypeBuilder<T> dimensions(net.minecraft.world.entity.EntityDimensions dimensions) Deprecated.useEntityType.Builder.sized(float, float)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 public FabricEntityTypeBuilder<T> specificSpawnBlocks(net.minecraft.world.level.block.Block... blocks) Deprecated.useEntityType.Builder.immuneTo(Block...)Sets theImmutableSetof blocks this entity can spawn on.- Parameters:
blocks- the blocks the entity can spawn on- Returns:
- this builder for chaining
-
requires
@Deprecated public FabricEntityTypeBuilder<T> requires(net.minecraft.world.flag.FeatureFlag... requiredFeatures) Deprecated.useEntityType.Builder.requiredFeatures(FeatureFlag...)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 public net.minecraft.world.entity.EntityType<T> build(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key) Deprecated.useEntityType.Builder.build(ResourceKey)Creates the entity type.- Returns:
- a new
EntityType
-
EntityType.Builder