Living

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.

Parameters

<T>

Entity class.

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.
defaultAttributes
Link copied to clipboard
FabricEntityTypeBuilder.Living<TdefaultAttributes(Supplier<DefaultAttributeContainer.Builder> defaultAttributeBuilder)
Sets the default attributes for a type of living entity.
dimensions
Link copied to clipboard
FabricEntityTypeBuilder.Living<Tdimensions(EntityDimensions dimensions)
FabricEntityTypeBuilder<Tdimensions(EntityDimensions dimensions)
Sets the dimensions of this entity type.
disableSaving
Link copied to clipboard
FabricEntityTypeBuilder.Living<TdisableSaving()
FabricEntityTypeBuilder<TdisableSaving()
disableSummon
Link copied to clipboard
FabricEntityTypeBuilder.Living<TdisableSummon()
FabricEntityTypeBuilder<TdisableSummon()
Whether this entity type is summonable using the {@code /summon} command.
entityFactory
Link copied to clipboard
FabricEntityTypeBuilder.Living<NentityFactory<N extends T>(EntityType.EntityFactory<N> factory)
FabricEntityTypeBuilder<NentityFactory<N extends T>(EntityType.EntityFactory<N> factory)
fireImmune
Link copied to clipboard
FabricEntityTypeBuilder.Living<TfireImmune()
FabricEntityTypeBuilder<TfireImmune()
Sets this entity type to be fire immune.
forceTrackedVelocityUpdates
Link copied to clipboard
FabricEntityTypeBuilder.Living<TforceTrackedVelocityUpdates(boolean forceTrackedVelocityUpdates)
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.Living<TspawnGroup(SpawnGroup group)
FabricEntityTypeBuilder<TspawnGroup(SpawnGroup group)
specificSpawnBlocks
Link copied to clipboard
FabricEntityTypeBuilder.Living<TspecificSpawnBlocks(Array<Block> blocks)
FabricEntityTypeBuilder<TspecificSpawnBlocks(Array<Block> blocks)
Sets the ImmutableSet of blocks this entity can spawn on.
trackable
Link copied to clipboard
FabricEntityTypeBuilder.Living<Ttrackable(int trackRangeBlocks, int trackedUpdateRate)
FabricEntityTypeBuilder<Ttrackable(int trackRangeBlocks, int trackedUpdateRate)
FabricEntityTypeBuilder.Living<Ttrackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates)
FabricEntityTypeBuilder<Ttrackable(int trackRangeBlocks, int trackedUpdateRate, boolean forceTrackedVelocityUpdates)
trackedUpdateRate
Link copied to clipboard
FabricEntityTypeBuilder.Living<TtrackedUpdateRate(int rate)
FabricEntityTypeBuilder<TtrackedUpdateRate(int rate)
trackRangeBlocks
Link copied to clipboard
FabricEntityTypeBuilder.Living<TtrackRangeBlocks(int range)
FabricEntityTypeBuilder<TtrackRangeBlocks(int range)
Sets the maximum block range at which players can see this entity type.
trackRangeChunks
Link copied to clipboard
FabricEntityTypeBuilder.Living<TtrackRangeChunks(int range)
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