Class FabricEntityTypeBuilder.Mob<T extends MobEntity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder<T>
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder.Living<T>
net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder.Mob<T>
- Type Parameters:
T- Entity class.
- Enclosing class:
FabricEntityTypeBuilder<T extends Entity>
@Deprecated
public static class FabricEntityTypeBuilder.Mob<T extends MobEntity>
extends FabricEntityTypeBuilder.Living<T>
Deprecated.
An extended version of
FabricEntityTypeBuilder with support for features on present on mob entities, such as spawn restrictions.-
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
ConstructorsModifierConstructorDescriptionprotectedMob(SpawnGroup spawnGroup, EntityType.EntityFactory<T> function) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild(RegistryKey<EntityType<?>> key) Deprecated.Creates the entity type.defaultAttributes(Supplier<DefaultAttributeContainer.Builder> defaultAttributeBuilder) Deprecated.Sets the default attributes for a type of living entity.dimensions(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.Mob<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.spawnRestriction(SpawnLocation spawnLocation, Heightmap.Type heightmap, SpawnRestriction.SpawnPredicate<T> spawnPredicate) Deprecated.specificSpawnBlocks(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 net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder
create, create, create, createLiving, createMob, requires
-
Constructor Details
-
Mob
Deprecated.
-
-
Method Details
-
spawnGroup
Deprecated.- Overrides:
spawnGroupin classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
entityFactory
public <N extends T> FabricEntityTypeBuilder.Mob<N> entityFactory(EntityType.EntityFactory<N> factory) Deprecated.- Overrides:
entityFactoryin classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
disableSummon
Deprecated.Description copied from class:FabricEntityTypeBuilderWhether this entity type is summonable using the/summoncommand.- Overrides:
disableSummonin classFabricEntityTypeBuilder.Living<T extends MobEntity>- Returns:
- this builder for chaining
-
disableSaving
Deprecated.- Overrides:
disableSavingin classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
fireImmune
Deprecated.Description copied from class:FabricEntityTypeBuilderSets this entity type to be fire immune.- Overrides:
fireImmunein classFabricEntityTypeBuilder.Living<T extends MobEntity>- 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.Living<T extends MobEntity>- Returns:
- this builder for chaining
-
dimensions
Deprecated.Description copied from class:FabricEntityTypeBuilderSets the dimensions of this entity type.- Overrides:
dimensionsin classFabricEntityTypeBuilder.Living<T extends MobEntity>- Parameters:
dimensions- the dimensions representing the entity's size- Returns:
- this builder for chaining
-
trackable
@Deprecated public FabricEntityTypeBuilder.Mob<T> trackable(int trackRangeBlocks, int trackedUpdateRate) Deprecated.- Overrides:
trackablein classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
trackable
@Deprecated public FabricEntityTypeBuilder.Mob<T> trackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
trackablein classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
trackRangeChunks
Deprecated.Description copied from class:FabricEntityTypeBuilderSets the maximum chunk tracking range of this entity type.- Overrides:
trackRangeChunksin classFabricEntityTypeBuilder.Living<T extends MobEntity>- 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.Living<T extends MobEntity>- Parameters:
range- the tracking range in blocks- Returns:
- this builder for chaining
-
trackedUpdateRate
Deprecated.- Overrides:
trackedUpdateRatein classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
forceTrackedVelocityUpdates
public FabricEntityTypeBuilder.Mob<T> forceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates) Deprecated.- Overrides:
forceTrackedVelocityUpdatesin classFabricEntityTypeBuilder.Living<T extends MobEntity>
-
specificSpawnBlocks
Deprecated.Description copied from class:FabricEntityTypeBuilderSets theImmutableSetof blocks this entity can spawn on.- Overrides:
specificSpawnBlocksin classFabricEntityTypeBuilder.Living<T extends MobEntity>- Parameters:
blocks- the blocks the entity can spawn on- Returns:
- this builder for chaining
-
defaultAttributes
public FabricEntityTypeBuilder.Mob<T> defaultAttributes(Supplier<DefaultAttributeContainer.Builder> defaultAttributeBuilder) Deprecated.Description copied from class:FabricEntityTypeBuilder.LivingSets 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();- Overrides:
defaultAttributesin classFabricEntityTypeBuilder.Living<T extends MobEntity>- Parameters:
defaultAttributeBuilder- a function to generate the default attribute builder from the entity type- Returns:
- this builder for chaining
-
spawnRestriction
@Deprecated public FabricEntityTypeBuilder.Mob<T> spawnRestriction(SpawnLocation spawnLocation, Heightmap.Type heightmap, SpawnRestriction.SpawnPredicate<T> spawnPredicate) Deprecated.Registers a spawn restriction for this entity.This is used by mobs to determine whether Minecraft should spawn an entity within a certain context.
- Returns:
- this builder for chaining.
-
build
Deprecated.Description copied from class:FabricEntityTypeBuilderCreates the entity type.- Overrides:
buildin classFabricEntityTypeBuilder.Living<T extends MobEntity>- Returns:
- a new
EntityType
-
FabricEntityType.Builder.Mob.spawnRestriction(SpawnLocation, Heightmap.Type, SpawnRestriction.SpawnPredicate)