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 booleanprivate EntityAttachments.Builderprivate booleanprivate final MobCategoryprivate intprivate final DependantName<EntityType<?>, String> private EntityDimensionsprivate final EntityType.EntityFactory<T> private booleanprivate ImmutableSet<Block> private DependantName<EntityType<?>, Optional<ResourceKey<LootTable>>> private booleanprivate FeatureFlagSetprivate booleanprivate floatprivate booleanprivate ToIntFunction<EntityType<?>> private intprivate ToIntFunction<EntityType<?>> private Predicate<EntityType<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuilder(EntityType.EntityFactory<T> pFactory, MobCategory pCategory) -
Method Summary
Modifier and TypeMethodDescriptionattach(EntityAttachment pAttachment, float pX, float pY, float pZ) attach(EntityAttachment pAttachment, Vec3 pPos) build(ResourceKey<EntityType<?>> pEntityType) 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) setOnlyOpCanSetNbt(boolean onlyOpCanSetNbt) 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
-
lootTable
-
descriptionId
-
allowedInPeaceful
private boolean allowedInPeaceful -
velocityUpdateSupplier
-
trackingRangeSupplier
-
updateIntervalSupplier
-
onlyOpCanSetNbt
private boolean onlyOpCanSetNbt
-
-
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
-
noLootTable
-
notInPeaceful
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
setOnlyOpCanSetNbt
-
build
-