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.Builderprivate booleanprivate final MobCategoryprivate intprivate EntityDimensionsprivate final EntityType.EntityFactory<T> private booleanprivate ImmutableSet<Block> private FeatureFlagSetprivate booleanprivate floatprivate booleanprivate ToIntFunction<EntityType<?>> private intprivate ToIntFunction<EntityType<?>> private Predicate<EntityType<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuilder(EntityType.EntityFactory<T> factory, MobCategory category) -
Method Summary
Modifier and TypeMethodDescriptionattach(EntityAttachment attachment, float x, float y, float z) attach(EntityAttachment attachment, Vec3 pos) clientTrackingRange(int clientTrackingRange) static <T extends Entity>
EntityType.Builder<T> createNothing(MobCategory category) eyeHeight(float eyeHeight) nameTagOffset(float nameTagOffset) noSave()noSummon()static <T extends Entity>
EntityType.Builder<T> of(EntityType.EntityFactory<T> factory, MobCategory category) passengerAttachments(float... attachPoints) passengerAttachments(Vec3... attachPoints) requiredFeatures(FeatureFlag... requiredFeatures) ridingOffset(float ridingOffset) setShouldReceiveVelocityUpdates(boolean value) setTrackingRange(int range) setUpdateInterval(int interval) sized(float width, float height) spawnDimensionsScale(float spawnDimensionsScale) updateInterval(int updateInterval) vehicleAttachment(Vec3 attachPoint)
-
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> factory, MobCategory category) -
createNothing
-
sized
-
spawnDimensionsScale
-
eyeHeight
-
passengerAttachments
-
passengerAttachments
-
vehicleAttachment
-
ridingOffset
-
nameTagOffset
-
attach
-
attach
-
noSummon
-
noSave
-
fireImmune
-
immuneTo
-
canSpawnFarFromPlayer
-
clientTrackingRange
-
updateInterval
-
requiredFeatures
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
build
-