类 EntityType.Builder<T extends Entity>
java.lang.Object
net.minecraft.world.entity.EntityType.Builder<T>
- 封闭类:
EntityType<T extends Entity>
-
字段概要
字段修饰符和类型字段说明private EntityAttachments.Builder
private boolean
private final MobCategory
private int
private BiFunction
<SpawnEntity, Level, T> private 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 FeatureFlagSet
private boolean
private float
private boolean
private ToIntFunction
<EntityType<?>> private int
private ToIntFunction
<EntityType<?>> private Predicate
<EntityType<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明attach
(EntityAttachment p_329709_, float p_333115_, float p_330566_, float p_336085_) attach
(EntityAttachment p_329452_, Vec3 p_328984_) build
(ResourceKey<EntityType<?>> p_369693_) clientTrackingRange
(int p_20703_) static <T extends Entity>
EntityType.Builder<T> createNothing
(MobCategory p_20711_) eyeHeight
(float p_331685_) nameTagOffset
(float p_332085_) noSave()
noSummon()
static <T extends Entity>
EntityType.Builder<T> of
(EntityType.EntityFactory<T> p_20705_, MobCategory p_20706_) passengerAttachments
(float... p_335899_) passengerAttachments
(Vec3... p_334238_) requiredFeatures
(FeatureFlag... p_251646_) ridingOffset
(float p_335381_) setCustomClientFactory
(BiFunction<SpawnEntity, Level, T> customClientFactory) By default, entities are spawned clientside via引用无效
EntityType#create(Level)
setShouldReceiveVelocityUpdates
(boolean value) setTrackingRange
(int range) setUpdateInterval
(int interval) sized
(float p_20700_, float p_20701_) spawnDimensionsScale
(float p_334402_) updateInterval
(int p_20718_) vehicleAttachment
(Vec3 p_330973_)
-
字段详细资料
-
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
-
customClientFactory
-
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
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_329709_, float p_333115_, float p_330566_, float p_336085_) -
attach
-
noSummon
-
noSave
-
fireImmune
-
immuneTo
-
canSpawnFarFromPlayer
-
clientTrackingRange
-
updateInterval
-
requiredFeatures
-
noLootTable
-
setUpdateInterval
-
setTrackingRange
-
setShouldReceiveVelocityUpdates
-
setCustomClientFactory
public EntityType.Builder<T> setCustomClientFactory(BiFunction<SpawnEntity, Level, T> customClientFactory) By default, entities are spawned clientside via引用无效
EntityType#create(Level)
-
build
-