net.minecraft.entity

public class EntityType$Builder<T extends Entity>

net.minecraft.world.entity.EntityType$Builder
net.minecraft.class_1299$class_1300
net.minecraft.entity.EntityType$Builder

Field summary

Modifier and TypeField
private final EntityType$EntityFactory<T>
factory
field_6148
factory
private final SpawnGroup
category
field_6149
spawnGroup
private TagKey<Block>
immuneTo
field_25356
canSpawnInside
private boolean
serialize
field_6151
saveable
private boolean
summon
field_6150
summonable
private boolean
fireImmune
field_18982
fireImmune
private boolean
canSpawnFarFromPlayer
field_19424
spawnableFarFromPlayer
private int
clientTrackingRange
field_24087
maxTrackingRange
private int
updateInterval
field_24088
trackingTickInterval
private EntityDimensions
dimensions
field_18071
dimensions
private float
spawnDimensionsScale
field_50126
spawnBoxScale
private EntityAttachments$Builder
attachments
field_47755
attachments
private FeatureSet
requiredFeatures
field_40117
requiredFeatures
private RegistryKeyedValue<EntityType<?>, Optional<RegistryKey<LootTable>>>
lootTable
field_53972
lootTable
private final RegistryKeyedValue<EntityType<?>, String>
descriptionId
field_53973
translationKey
private boolean
allowedInPeaceful
field_61224
allowedInPeaceful
private boolean
trackDeltas
field_1_7307
alwaysUpdateVelocity

Constructor summary

ModifierConstructor
private (EntityType$EntityFactory<T> factory, SpawnGroup spawnGroup)

Method summary

Modifier and TypeMethod
public static <T extends Entity> EntityType$Builder<T>
of(EntityType$EntityFactory<T> factory, MobCategory category)
method_5903(class_1299$class_4049<T> arg0, class_1311 arg1)
create(EntityType$EntityFactory<T> factory, SpawnGroup spawnGroup)
public static <T extends Entity> EntityType$Builder<T>
createNothing(MobCategory category)
method_5902(class_1311 arg0)
create(SpawnGroup spawnGroup)
public EntityType$Builder<T>
sized(float width, float height)
method_17687(float arg0, float arg1)
dimensions(float width, float height)
public EntityType$Builder<T>
spawnDimensionsScale(float scale)
method_58630(float arg0)
spawnBoxScale(float spawnBoxScale)
public EntityType$Builder<T>
eyeHeight(float eyeHeight)
method_55687(float arg0)
eyeHeight(float eyeHeight)
public EntityType$Builder<T>
passengerAttachments(float... offsetYs)
method_55689(float... arg0)
passengerAttachments(float... offsetYs)
public EntityType$Builder<T>
passengerAttachments(Vec3... points)
method_55690(class_243... arg0)
passengerAttachments(Vec3d... passengerAttachments)
public EntityType$Builder<T>
vehicleAttachment(Vec3 point)
method_55688(class_243 arg0)
vehicleAttachment(Vec3d vehicleAttachment)
public EntityType$Builder<T>
ridingOffset(float ridingOffset)
method_55691(float arg0)
vehicleAttachment(float offsetY)
public EntityType$Builder<T>
nameTagOffset(float nameTagOffset)
method_55692(float arg0)
nameTagAttachment(float offsetY)
public EntityType$Builder<T>
attach(EntityAttachment attachment, float x, float y, float z)
method_56075(class_9064 arg0, float arg1, float arg2, float arg3)
attachment(EntityAttachmentType type, float offsetX, float offsetY, float offsetZ)
public EntityType$Builder<T>
attach(EntityAttachment attachment, Vec3 point)
method_56076(class_9064 arg0, class_243 arg1)
attachment(EntityAttachmentType type, Vec3d offset)
public EntityType$Builder<T>
noSummon()
method_5901()
disableSummon()
public EntityType$Builder<T>
noSave()
method_5904()
disableSaving()
public EntityType$Builder<T>
fireImmune()
method_19947()
makeFireImmune()
public EntityType$Builder<T>
immuneTo(TagKey<Block> tag)
method_29497(class_6862<class_2248> arg0)
allowSpawningInside(TagKey<Block> canSpawnInside)
public EntityType$Builder<T>
canSpawnFarFromPlayer()
method_20815()
spawnableFarFromPlayer()
public EntityType$Builder<T>
clientTrackingRange(int clientChunkRange)
method_27299(int arg0)
maxTrackingRange(int maxTrackingRange)
public EntityType$Builder<T>
updateInterval(int updateInterval)
method_27300(int arg0)
trackingTickInterval(int trackingTickInterval)
public EntityType$Builder<T>
requiredFeatures(FeatureFlag... flags)
method_45323(class_7696... arg0)
requires(FeatureFlag... features)
public EntityType$Builder<T>
noLootTable()
method_63006()
dropsNothing()
public EntityType$Builder<T>
notInPeaceful()
method_72391()
notAllowedInPeaceful()
public EntityType$Builder<T>
dontTrackDeltas()
method_1_6467()
alwaysUpdateVelocity()
public EntityType<T>
build(ResourceKey<EntityType<?>> name)
method_5905(class_5321<class_1299<?>> arg0)
build(RegistryKey<EntityType<?>> registryKey)
private static Entity
lambda$createNothing$0(EntityType arg0, Level arg1)
method_5900(class_1299 arg0, class_1937 arg1)
method_5900(EntityType type, World world)
private static String
lambda$new$1(ResourceKey arg0)
method_63004(class_5321 arg0)
method_63004(RegistryKey registryKey)
private static Optional
lambda$new$0(ResourceKey arg0)
method_63005(class_5321 arg0)
method_63005(RegistryKey registryKey)