FabricEntityType

public class FabricEntityType<T extends Entity> extends EntityType<T>

Constructors

FabricEntityType
Link copied to clipboard
void FabricEntityType(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup, boolean bl, boolean summonable, boolean fireImmune, boolean spawnableFarFromPlayer, ImmutableSet<Block> spawnBlocks, EntityDimensions entityDimensions, int maxTrackDistance, int trackTickInterval, Boolean alwaysUpdateVelocity)

Functions

alwaysUpdateVelocity
Link copied to clipboard
boolean alwaysUpdateVelocity()
boolean alwaysUpdateVelocity()
create
Link copied to clipboard
T create(ServerWorld world, NbtCompound itemNbt, Text name, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
createInstanceFromId
Link copied to clipboard
static Entity createInstanceFromId(int type, World world)
createSimpleBoundingBox
Link copied to clipboard
Box createSimpleBoundingBox(double feetX, double feetY, double feetZ)
downcast
Link copied to clipboard
T downcast(Entity entity)
fromNbt
Link copied to clipboard
static Optional<EntityType<? extends Object>> fromNbt(NbtCompound nbt)
get
Link copied to clipboard
static Optional<EntityType<? extends Object>> get(String id)
getBaseClass
Link copied to clipboard
Class<? extends EntitygetBaseClass()
abstract Class<? extends BgetBaseClass()
getDimensions
Link copied to clipboard
EntityDimensions getDimensions()
getEntityFromNbt
Link copied to clipboard
static Optional<EntitygetEntityFromNbt(NbtCompound nbt, World world)
getHeight
Link copied to clipboard
float getHeight()
getId
Link copied to clipboard
static Identifier getId(EntityType<? extends Object> type)
getLootTableId
Link copied to clipboard
Identifier getLootTableId()
getMaxTrackDistance
Link copied to clipboard
int getMaxTrackDistance()
getName
Link copied to clipboard
Text getName()
getSpawnGroup
Link copied to clipboard
SpawnGroup getSpawnGroup()
getTrackTickInterval
Link copied to clipboard
int getTrackTickInterval()
getTranslationKey
Link copied to clipboard
String getTranslationKey()
getUntranslatedName
Link copied to clipboard
String getUntranslatedName()
getWidth
Link copied to clipboard
float getWidth()
instanceOf
Link copied to clipboard
static TypeFilter<B, TinstanceOf<B, T extends B>(Class<T> cls)
isFireImmune
Link copied to clipboard
boolean isFireImmune()
isIn
Link copied to clipboard
boolean isIn(Tag<EntityType<? extends Object>> tag)
isInvalidSpawn
Link copied to clipboard
boolean isInvalidSpawn(BlockState state)
isSaveable
Link copied to clipboard
boolean isSaveable()
isSpawnableFarFromPlayer
Link copied to clipboard
boolean isSpawnableFarFromPlayer()
isSummonable
Link copied to clipboard
boolean isSummonable()
loadEntityWithPassengers
Link copied to clipboard
static Entity loadEntityWithPassengers(NbtCompound nbt, World world, Function<Entity, Entity> entityProcessor)
loadFromEntityNbt
Link copied to clipboard
static void loadFromEntityNbt(World world, PlayerEntity player, Entity entity, NbtCompound itemNbt)
spawn
Link copied to clipboard
T spawn(ServerWorld world, NbtCompound itemNbt, Text name, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
spawnFromItemStack
Link copied to clipboard
Entity spawnFromItemStack(ServerWorld world, ItemStack stack, PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
streamFromNbt
Link copied to clipboard
static Stream<EntitystreamFromNbt(List<? extends NbtElement> entityNbtList, World world)
toString
Link copied to clipboard
String toString()

Sources

jvm source
Link copied to clipboard