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> pFactory, MobCategory pCategory) -
Method Summary
Modifier and TypeMethodDescriptionattach
(EntityAttachment pAttachment, float pX, float pY, float pZ) attach
(EntityAttachment pAttachment, Vec3 pPos) clientTrackingRange
(int pClientTrackingRange) static <T extends Entity>
EntityType.Builder<T> createNothing
(MobCategory pCategory) eyeHeight
(float pEyeHeight) nameTagOffset
(float pNameTagOffset) noSave()
noSummon()
static <T extends Entity>
EntityType.Builder<T> of
(EntityType.EntityFactory<T> pFactory, MobCategory pCategory) passengerAttachments
(float... pAttachPoints) passengerAttachments
(Vec3... pAttachPoints) requiredFeatures
(FeatureFlag... pRequiredFeatures) ridingOffset
(float pRidingOffset) setShouldReceiveVelocityUpdates
(boolean value) setTrackingRange
(int range) setUpdateInterval
(int interval) sized
(float pWidth, float pHeight) spawnDimensionsScale
(float pSpawnDimensionsScale) updateInterval
(int pUpdateInterval) vehicleAttachment
(Vec3 pAttachPoint)
-
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> pFactory, MobCategory pCategory) -
createNothing
-
sized
-
spawnDimensionsScale
-
eyeHeight
-
passengerAttachments
-
passengerAttachments
-
vehicleAttachment
-
ridingOffset
-
nameTagOffset
-
attach
-
attach
-
noSummon
-
noSave
-
fireImmune
-
immuneTo
-
canSpawnFarFromPlayer
-
clientTrackingRange
-
updateInterval
-
requiredFeatures
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
build
-