Package net.minecraft.world.entity
Class EntityType.Builder<T extends Entity>
java.lang.Object
net.minecraft.world.entity.EntityType.Builder<T>
- Enclosing class:
EntityType<T extends Entity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EntityAttachments.Builder
private boolean
private final MobCategory
private int
private EntityDimensions
private final EntityType.EntityFactory
<T> private boolean
private com.google.common.collect.ImmutableSet
<Block> private FeatureFlagSet
private boolean
private float
private boolean
private ToIntFunction
<EntityType<?>> private int
private ToIntFunction
<EntityType<?>> private Predicate
<EntityType<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Builder
(EntityType.EntityFactory<T> p_20696_, MobCategory p_20697_) -
Method Summary
Modifier and TypeMethodDescriptionattach
(EntityAttachment p_320654_, float p_320819_, float p_320871_, float p_320278_) attach
(EntityAttachment p_320601_, Vec3 p_320745_) clientTrackingRange
(int p_20703_) static <T extends Entity>
EntityType.Builder<T> createNothing
(MobCategory p_20711_) eyeHeight
(float p_316663_) nameTagOffset
(float p_316662_) noSave()
noSummon()
static <T extends Entity>
EntityType.Builder<T> of
(EntityType.EntityFactory<T> p_20705_, MobCategory p_20706_) passengerAttachments
(float... p_316352_) passengerAttachments
(Vec3... p_316160_) requiredFeatures
(FeatureFlag... p_251646_) ridingOffset
(float p_316455_) setShouldReceiveVelocityUpdates
(boolean value) setTrackingRange
(int range) setUpdateInterval
(int interval) sized
(float p_20700_, float p_20701_) spawnDimensionsScale
(float p_338311_) updateInterval
(int p_20718_) vehicleAttachment
(Vec3 p_316758_)
-
Field Details
-
factory
-
category
-
immuneTo
-
serialize
private boolean serialize -
summon
private boolean summon -
fireImmune
private boolean fireImmune -
canSpawnFarFromPlayer
private boolean canSpawnFarFromPlayer -
clientTrackingRange
private int clientTrackingRange -
updateInterval
private int updateInterval -
dimensions
-
spawnDimensionsScale
private float spawnDimensionsScale -
attachments
-
requiredFeatures
-
velocityUpdateSupplier
-
trackingRangeSupplier
-
updateIntervalSupplier
-
-
Constructor Details
-
Builder
-
-
Method Details
-
of
public static <T extends Entity> EntityType.Builder<T> of(EntityType.EntityFactory<T> p_20705_, MobCategory p_20706_) -
createNothing
-
sized
-
spawnDimensionsScale
-
eyeHeight
-
passengerAttachments
-
passengerAttachments
-
vehicleAttachment
-
ridingOffset
-
nameTagOffset
-
attach
public EntityType.Builder<T> attach(EntityAttachment p_320654_, float p_320819_, float p_320871_, float p_320278_) -
attach
-
noSummon
-
noSave
-
fireImmune
-
immuneTo
-
canSpawnFarFromPlayer
-
clientTrackingRange
-
updateInterval
-
requiredFeatures
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
build
-