Package net.minecraft.entity
Class EntityType.Builder<T extends Entity>
java.lang.Object
net.minecraft.entity.EntityType.Builder<T>
- Enclosing class:
EntityType<T extends Entity>
- Mappings:
Namespace Name named net/minecraft/entity/EntityType$Builder
intermediary net/minecraft/class_1299$class_1300
official bsx$a
-
Field Summary
Modifier and TypeFieldDescriptionprivate EntityAttachments.Builder
private ImmutableSet
<Block> private EntityDimensions
private final EntityType.EntityFactory
<T> private boolean
private int
private FeatureSet
private boolean
private boolean
private float
private final SpawnGroup
private boolean
private int
-
Constructor Summary
ModifierConstructorDescriptionprivate
Builder
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) -
Method Summary
Modifier and TypeMethodDescriptionallowSpawningInside
(Block[] blocks) Allows this type of entity to spawn inside the given block, bypassing the default wither rose, sweet berry bush, cactus, and fire-damage-dealing blocks for non-fire-resistant mobs.attachment
(EntityAttachmentType type, float offsetX, float offsetY, float offsetZ) attachment
(EntityAttachmentType type, Vec3d offset) static <T extends Entity>
EntityType.Builder<T> create
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) static <T extends Entity>
EntityType.Builder<T> create
(SpawnGroup spawnGroup) dimensions
(float width, float height) eyeHeight
(float eyeHeight) maxTrackingRange
(int maxTrackingRange) nameTagAttachment
(float offsetY) passengerAttachments
(float[] offsetYs) passengerAttachments
(Vec3d[] passengerAttachments) requires
(FeatureFlag[] features) spawnBoxScale
(float spawnBoxScale) trackingTickInterval
(int trackingTickInterval) vehicleAttachment
(float offsetY) vehicleAttachment
(Vec3d vehicleAttachment)
-
Field Details
-
factory
- Mappings:
Namespace Name Mixin selector named factory
Lnet/minecraft/entity/EntityType$Builder;factory:Lnet/minecraft/entity/EntityType$EntityFactory;
intermediary field_6148
Lnet/minecraft/class_1299$class_1300;field_6148:Lnet/minecraft/class_1299$class_4049;
official a
Lbsx$a;a:Lbsx$b;
-
spawnGroup
- Mappings:
Namespace Name Mixin selector named spawnGroup
Lnet/minecraft/entity/EntityType$Builder;spawnGroup:Lnet/minecraft/entity/SpawnGroup;
intermediary field_6149
Lnet/minecraft/class_1299$class_1300;field_6149:Lnet/minecraft/class_1311;
official b
Lbsx$a;b:Lbtq;
-
canSpawnInside
- Mappings:
Namespace Name Mixin selector named canSpawnInside
Lnet/minecraft/entity/EntityType$Builder;canSpawnInside:Lcom/google/common/collect/ImmutableSet;
intermediary field_25356
Lnet/minecraft/class_1299$class_1300;field_25356:Lcom/google/common/collect/ImmutableSet;
official c
Lbsx$a;c:Lcom/google/common/collect/ImmutableSet;
-
saveable
private boolean saveable- Mappings:
Namespace Name Mixin selector named saveable
Lnet/minecraft/entity/EntityType$Builder;saveable:Z
intermediary field_6151
Lnet/minecraft/class_1299$class_1300;field_6151:Z
official d
Lbsx$a;d:Z
-
summonable
private boolean summonable- Mappings:
Namespace Name Mixin selector named summonable
Lnet/minecraft/entity/EntityType$Builder;summonable:Z
intermediary field_6150
Lnet/minecraft/class_1299$class_1300;field_6150:Z
official e
Lbsx$a;e:Z
-
fireImmune
private boolean fireImmune- Mappings:
Namespace Name Mixin selector named fireImmune
Lnet/minecraft/entity/EntityType$Builder;fireImmune:Z
intermediary field_18982
Lnet/minecraft/class_1299$class_1300;field_18982:Z
official f
Lbsx$a;f:Z
-
spawnableFarFromPlayer
private boolean spawnableFarFromPlayer- Mappings:
Namespace Name Mixin selector named spawnableFarFromPlayer
Lnet/minecraft/entity/EntityType$Builder;spawnableFarFromPlayer:Z
intermediary field_19424
Lnet/minecraft/class_1299$class_1300;field_19424:Z
official g
Lbsx$a;g:Z
-
maxTrackingRange
private int maxTrackingRange- Mappings:
Namespace Name Mixin selector named maxTrackingRange
Lnet/minecraft/entity/EntityType$Builder;maxTrackingRange:I
intermediary field_24087
Lnet/minecraft/class_1299$class_1300;field_24087:I
official h
Lbsx$a;h:I
-
trackingTickInterval
private int trackingTickInterval- Mappings:
Namespace Name Mixin selector named trackingTickInterval
Lnet/minecraft/entity/EntityType$Builder;trackingTickInterval:I
intermediary field_24088
Lnet/minecraft/class_1299$class_1300;field_24088:I
official i
Lbsx$a;i:I
-
dimensions
- Mappings:
Namespace Name Mixin selector named dimensions
Lnet/minecraft/entity/EntityType$Builder;dimensions:Lnet/minecraft/entity/EntityDimensions;
intermediary field_18071
Lnet/minecraft/class_1299$class_1300;field_18071:Lnet/minecraft/class_4048;
official j
Lbsx$a;j:Lbsu;
-
spawnBoxScale
private float spawnBoxScale- Mappings:
Namespace Name Mixin selector named spawnBoxScale
Lnet/minecraft/entity/EntityType$Builder;spawnBoxScale:F
intermediary field_50126
Lnet/minecraft/class_1299$class_1300;field_50126:F
official k
Lbsx$a;k:F
-
attachments
- Mappings:
Namespace Name Mixin selector named attachments
Lnet/minecraft/entity/EntityType$Builder;attachments:Lnet/minecraft/entity/EntityAttachments$Builder;
intermediary field_47755
Lnet/minecraft/class_1299$class_1300;field_47755:Lnet/minecraft/class_9066$class_9067;
official l
Lbsx$a;l:Lbst$a;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeatures
Lnet/minecraft/entity/EntityType$Builder;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_40117
Lnet/minecraft/class_1299$class_1300;field_40117:Lnet/minecraft/class_7699;
official m
Lbsx$a;m:Lcpl;
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/EntityType$Builder;<init>(Lnet/minecraft/entity/EntityType$EntityFactory;Lnet/minecraft/entity/SpawnGroup;)V
intermediary <init>
Lnet/minecraft/class_1299$class_1300;<init>(Lnet/minecraft/class_1299$class_4049;Lnet/minecraft/class_1311;)V
official <init>
Lbsx$a;<init>(Lbsx$b;Lbtq;)V
-
-
Method Details
-
create
public static <T extends Entity> EntityType.Builder<T> create(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/entity/EntityType$Builder;create(Lnet/minecraft/entity/EntityType$EntityFactory;Lnet/minecraft/entity/SpawnGroup;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_5903
Lnet/minecraft/class_1299$class_1300;method_5903(Lnet/minecraft/class_1299$class_4049;Lnet/minecraft/class_1311;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(Lbsx$b;Lbtq;)Lbsx$a;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/entity/EntityType$Builder;create(Lnet/minecraft/entity/SpawnGroup;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_5902
Lnet/minecraft/class_1299$class_1300;method_5902(Lnet/minecraft/class_1311;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(Lbtq;)Lbsx$a;
-
dimensions
- Mappings:
Namespace Name Mixin selector named dimensions
Lnet/minecraft/entity/EntityType$Builder;dimensions(FF)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_17687
Lnet/minecraft/class_1299$class_1300;method_17687(FF)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(FF)Lbsx$a;
-
spawnBoxScale
- Mappings:
Namespace Name Mixin selector named spawnBoxScale
Lnet/minecraft/entity/EntityType$Builder;spawnBoxScale(F)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_58630
Lnet/minecraft/class_1299$class_1300;method_58630(F)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(F)Lbsx$a;
-
eyeHeight
- Mappings:
Namespace Name Mixin selector named eyeHeight
Lnet/minecraft/entity/EntityType$Builder;eyeHeight(F)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55687
Lnet/minecraft/class_1299$class_1300;method_55687(F)Lnet/minecraft/class_1299$class_1300;
official b
Lbsx$a;b(F)Lbsx$a;
-
passengerAttachments
- Mappings:
Namespace Name Mixin selector named passengerAttachments
Lnet/minecraft/entity/EntityType$Builder;passengerAttachments([F)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55689
Lnet/minecraft/class_1299$class_1300;method_55689([F)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a([F)Lbsx$a;
-
passengerAttachments
- Mappings:
Namespace Name Mixin selector named passengerAttachments
Lnet/minecraft/entity/EntityType$Builder;passengerAttachments([Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55690
Lnet/minecraft/class_1299$class_1300;method_55690([Lnet/minecraft/class_243;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a([Lexc;)Lbsx$a;
-
vehicleAttachment
- Mappings:
Namespace Name Mixin selector named vehicleAttachment
Lnet/minecraft/entity/EntityType$Builder;vehicleAttachment(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55688
Lnet/minecraft/class_1299$class_1300;method_55688(Lnet/minecraft/class_243;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(Lexc;)Lbsx$a;
-
vehicleAttachment
- Mappings:
Namespace Name Mixin selector named vehicleAttachment
Lnet/minecraft/entity/EntityType$Builder;vehicleAttachment(F)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55691
Lnet/minecraft/class_1299$class_1300;method_55691(F)Lnet/minecraft/class_1299$class_1300;
official c
Lbsx$a;c(F)Lbsx$a;
-
nameTagAttachment
- Mappings:
Namespace Name Mixin selector named nameTagAttachment
Lnet/minecraft/entity/EntityType$Builder;nameTagAttachment(F)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_55692
Lnet/minecraft/class_1299$class_1300;method_55692(F)Lnet/minecraft/class_1299$class_1300;
official d
Lbsx$a;d(F)Lbsx$a;
-
attachment
public EntityType.Builder<T> attachment(EntityAttachmentType type, float offsetX, float offsetY, float offsetZ) - Mappings:
Namespace Name Mixin selector named attachment
Lnet/minecraft/entity/EntityType$Builder;attachment(Lnet/minecraft/entity/EntityAttachmentType;FFF)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_56075
Lnet/minecraft/class_1299$class_1300;method_56075(Lnet/minecraft/class_9064;FFF)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(Lbss;FFF)Lbsx$a;
-
attachment
- Mappings:
Namespace Name Mixin selector named attachment
Lnet/minecraft/entity/EntityType$Builder;attachment(Lnet/minecraft/entity/EntityAttachmentType;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_56076
Lnet/minecraft/class_1299$class_1300;method_56076(Lnet/minecraft/class_9064;Lnet/minecraft/class_243;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(Lbss;Lexc;)Lbsx$a;
-
disableSummon
- Mappings:
Namespace Name Mixin selector named disableSummon
Lnet/minecraft/entity/EntityType$Builder;disableSummon()Lnet/minecraft/entity/EntityType$Builder;
intermediary method_5901
Lnet/minecraft/class_1299$class_1300;method_5901()Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a()Lbsx$a;
-
disableSaving
- Mappings:
Namespace Name Mixin selector named disableSaving
Lnet/minecraft/entity/EntityType$Builder;disableSaving()Lnet/minecraft/entity/EntityType$Builder;
intermediary method_5904
Lnet/minecraft/class_1299$class_1300;method_5904()Lnet/minecraft/class_1299$class_1300;
official b
Lbsx$a;b()Lbsx$a;
-
makeFireImmune
- Mappings:
Namespace Name Mixin selector named makeFireImmune
Lnet/minecraft/entity/EntityType$Builder;makeFireImmune()Lnet/minecraft/entity/EntityType$Builder;
intermediary method_19947
Lnet/minecraft/class_1299$class_1300;method_19947()Lnet/minecraft/class_1299$class_1300;
official c
Lbsx$a;c()Lbsx$a;
-
allowSpawningInside
Allows this type of entity to spawn inside the given block, bypassing the default wither rose, sweet berry bush, cactus, and fire-damage-dealing blocks for non-fire-resistant mobs.minecraft:prevent_mob_spawning_inside
tag overrides this. With this setting, fire resistant mobs can spawn on/in fire damage dealing blocks, and wither skeletons can spawn in wither roses. If a block added is not in the default blacklist, the addition has no effect.- Mappings:
Namespace Name Mixin selector named allowSpawningInside
Lnet/minecraft/entity/EntityType$Builder;allowSpawningInside([Lnet/minecraft/block/Block;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_29497
Lnet/minecraft/class_1299$class_1300;method_29497([Lnet/minecraft/class_2248;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a([Ldfy;)Lbsx$a;
-
spawnableFarFromPlayer
- Mappings:
Namespace Name Mixin selector named spawnableFarFromPlayer
Lnet/minecraft/entity/EntityType$Builder;spawnableFarFromPlayer()Lnet/minecraft/entity/EntityType$Builder;
intermediary method_20815
Lnet/minecraft/class_1299$class_1300;method_20815()Lnet/minecraft/class_1299$class_1300;
official d
Lbsx$a;d()Lbsx$a;
-
maxTrackingRange
- Mappings:
Namespace Name Mixin selector named maxTrackingRange
Lnet/minecraft/entity/EntityType$Builder;maxTrackingRange(I)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_27299
Lnet/minecraft/class_1299$class_1300;method_27299(I)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a(I)Lbsx$a;
-
trackingTickInterval
- Mappings:
Namespace Name Mixin selector named trackingTickInterval
Lnet/minecraft/entity/EntityType$Builder;trackingTickInterval(I)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_27300
Lnet/minecraft/class_1299$class_1300;method_27300(I)Lnet/minecraft/class_1299$class_1300;
official b
Lbsx$a;b(I)Lbsx$a;
-
requires
- Mappings:
Namespace Name Mixin selector named requires
Lnet/minecraft/entity/EntityType$Builder;requires([Lnet/minecraft/resource/featuretoggle/FeatureFlag;)Lnet/minecraft/entity/EntityType$Builder;
intermediary method_45323
Lnet/minecraft/class_1299$class_1300;method_45323([Lnet/minecraft/class_7696;)Lnet/minecraft/class_1299$class_1300;
official a
Lbsx$a;a([Lcpj;)Lbsx$a;
-
build
- Mappings:
Namespace Name Mixin selector named build
Lnet/minecraft/entity/EntityType$Builder;build(Ljava/lang/String;)Lnet/minecraft/entity/EntityType;
intermediary method_5905
Lnet/minecraft/class_1299$class_1300;method_5905(Ljava/lang/String;)Lnet/minecraft/class_1299;
official a
Lbsx$a;a(Ljava/lang/String;)Lbsx;
-