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 final DependantName
<EntityType<?>, String> private EntityDimensions
private final EntityType.EntityFactory
<T> private boolean
private com.google.common.collect.ImmutableSet
<Block> private DependantName
<EntityType<?>, Optional<ResourceKey<LootTable>>> private boolean
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) 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
-
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
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
setOnlyOpCanSetNbt
-
build
-