FabricEntityTypeBuilder

public class FabricEntityTypeBuilder<T extends Entity>

Extended version of EntityType.Builder with added registration for server->client entity tracking values.

Parameters

<T>

Entity class.

Types

Living
Link copied to clipboard
public class Living<T extends LivingEntity> extends FabricEntityTypeBuilder<T>
An extended version of FabricEntityTypeBuilder with support for features on present on living entities, such as default attributes.
Mob
Link copied to clipboard
public class Mob<T extends MobEntity> extends FabricEntityTypeBuilder.Living<T>
An extended version of FabricEntityTypeBuilder with support for features on present on mob entities, such as spawn restrictions.

Functions

build
Link copied to clipboard
EntityType<Tbuild()
Creates the entity type.
create
Link copied to clipboard
static FabricEntityTypeBuilder<Tcreate<T extends Entity>()
Creates an entity type builder.
static FabricEntityTypeBuilder<Tcreate<T extends Entity>(SpawnGroup spawnGroup)
Creates an entity type builder.
static FabricEntityTypeBuilder<Tcreate<T extends Entity>(SpawnGroup spawnGroup, EntityType.EntityFactory<T> factory)
Creates an entity type builder.
createLiving
Link copied to clipboard
static FabricEntityTypeBuilder.Living<TcreateLiving<T extends LivingEntity>()
Creates an entity type builder for a living entity.
createMob
Link copied to clipboard
static FabricEntityTypeBuilder.Mob<TcreateMob<T extends MobEntity>()
Creates an entity type builder for a mob entity.
dimensions
Link copied to clipboard
FabricEntityTypeBuilder<Tdimensions(EntityDimensions dimensions)
Sets the dimensions of this entity type.
disableSaving
Link copied to clipboard
FabricEntityTypeBuilder<TdisableSaving()
disableSummon
Link copied to clipboard
FabricEntityTypeBuilder<TdisableSummon()
Whether this entity type is summonable using the {@code /summon} command.
entityFactory
Link copied to clipboard
FabricEntityTypeBuilder<NentityFactory<N extends T>(EntityType.EntityFactory<N> factory)
fireImmune
Link copied to clipboard
FabricEntityTypeBuilder<TfireImmune()
Sets this entity type to be fire immune.
forceTrackedVelocityUpdates
Link copied to clipboard
FabricEntityTypeBuilder<TforceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates)
spawnableFarFromPlayer
Link copied to clipboard
FabricEntityTypeBuilder<TspawnableFarFromPlayer()
Sets whether this entity type can be spawned far away from a player.
spawnGroup
Link copied to clipboard
FabricEntityTypeBuilder<TspawnGroup(SpawnGroup group)
specificSpawnBlocks
Link copied to clipboard
FabricEntityTypeBuilder<TspecificSpawnBlocks(Array<Block> blocks)
Sets the ImmutableSet of blocks this entity can spawn on.
trackable
Link copied to clipboard
FabricEntityTypeBuilder<Ttrackable(int trackRangeBlocks, int trackedUpdateRate)
FabricEntityTypeBuilder<Ttrackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates)
trackedUpdateRate
Link copied to clipboard
FabricEntityTypeBuilder<TtrackedUpdateRate(int rate)
trackRangeBlocks
Link copied to clipboard
FabricEntityTypeBuilder<TtrackRangeBlocks(int range)
Sets the maximum block range at which players can see this entity type.
trackRangeChunks
Link copied to clipboard
FabricEntityTypeBuilder<TtrackRangeChunks(int range)
Sets the maximum chunk tracking range of this entity type.

Inheritors

FabricEntityTypeBuilder
Link copied to clipboard

Sources

jvm source
Link copied to clipboard