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 official atj$a
intermediary net/minecraft/class_1299$class_1300
named net/minecraft/entity/EntityType$Builder
-
Field Summary
Modifier and TypeFieldDescriptionprivate ImmutableSet<Block>
private EntityDimensions
private final EntityType.EntityFactory<T>
private boolean
private int
private boolean
private boolean
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.static <T extends Entity>
EntityType.Builder<T>create
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) static <T extends Entity>
EntityType.Builder<T>create
(SpawnGroup spawnGroup) maxTrackingRange
(int maxTrackingRange) setDimensions
(float width, float height) trackingTickInterval
(int trackingTickInterval)
-
Field Details
-
factory
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a:Latj$b;
intermediary field_6148
Lnet/minecraft/class_1299$class_1300;field_6148:Lnet/minecraft/class_1299$class_4049;
named factory
Lnet/minecraft/entity/EntityType$Builder;factory:Lnet/minecraft/entity/EntityType$EntityFactory;
-
spawnGroup
- Mappings:
Namespace Name Mixin selector official b
Latj$a;b:Latw;
intermediary field_6149
Lnet/minecraft/class_1299$class_1300;field_6149:Lnet/minecraft/class_1311;
named spawnGroup
Lnet/minecraft/entity/EntityType$Builder;spawnGroup:Lnet/minecraft/entity/SpawnGroup;
-
canSpawnInside
- Mappings:
Namespace Name Mixin selector official c
Latj$a;c:Lcom/google/common/collect/ImmutableSet;
intermediary field_25356
Lnet/minecraft/class_1299$class_1300;field_25356:Lcom/google/common/collect/ImmutableSet;
named canSpawnInside
Lnet/minecraft/entity/EntityType$Builder;canSpawnInside:Lcom/google/common/collect/ImmutableSet;
-
saveable
private boolean saveable- Mappings:
Namespace Name Mixin selector official d
Latj$a;d:Z
intermediary field_6151
Lnet/minecraft/class_1299$class_1300;field_6151:Z
named saveable
Lnet/minecraft/entity/EntityType$Builder;saveable:Z
-
summonable
private boolean summonable- Mappings:
Namespace Name Mixin selector official e
Latj$a;e:Z
intermediary field_6150
Lnet/minecraft/class_1299$class_1300;field_6150:Z
named summonable
Lnet/minecraft/entity/EntityType$Builder;summonable:Z
-
fireImmune
private boolean fireImmune- Mappings:
Namespace Name Mixin selector official f
Latj$a;f:Z
intermediary field_18982
Lnet/minecraft/class_1299$class_1300;field_18982:Z
named fireImmune
Lnet/minecraft/entity/EntityType$Builder;fireImmune:Z
-
spawnableFarFromPlayer
private boolean spawnableFarFromPlayer- Mappings:
Namespace Name Mixin selector official g
Latj$a;g:Z
intermediary field_19424
Lnet/minecraft/class_1299$class_1300;field_19424:Z
named spawnableFarFromPlayer
Lnet/minecraft/entity/EntityType$Builder;spawnableFarFromPlayer:Z
-
maxTrackingRange
private int maxTrackingRange- Mappings:
Namespace Name Mixin selector official h
Latj$a;h:I
intermediary field_24087
Lnet/minecraft/class_1299$class_1300;field_24087:I
named maxTrackingRange
Lnet/minecraft/entity/EntityType$Builder;maxTrackingRange:I
-
trackingTickInterval
private int trackingTickInterval- Mappings:
Namespace Name Mixin selector official i
Latj$a;i:I
intermediary field_24088
Lnet/minecraft/class_1299$class_1300;field_24088:I
named trackingTickInterval
Lnet/minecraft/entity/EntityType$Builder;trackingTickInterval:I
-
dimensions
- Mappings:
Namespace Name Mixin selector official j
Latj$a;j:Latg;
intermediary field_18071
Lnet/minecraft/class_1299$class_1300;field_18071:Lnet/minecraft/class_4048;
named dimensions
Lnet/minecraft/entity/EntityType$Builder;dimensions:Lnet/minecraft/entity/EntityDimensions;
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector official <init>
Latj$a;<init>(Latj$b;Latw;)V
intermediary <init>
Lnet/minecraft/class_1299$class_1300;<init>(Lnet/minecraft/class_1299$class_4049;Lnet/minecraft/class_1311;)V
named <init>
Lnet/minecraft/entity/EntityType$Builder;<init>(Lnet/minecraft/entity/EntityType$EntityFactory;Lnet/minecraft/entity/SpawnGroup;)V
-
-
Method Details
-
create
public static <T extends Entity> EntityType.Builder<T> create(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) - Mappings:
Namespace Name Mixin selector official a
Latj$a;a(Latj$b;Latw;)Latj$a;
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;
named create
Lnet/minecraft/entity/EntityType$Builder;create(Lnet/minecraft/entity/EntityType$EntityFactory;Lnet/minecraft/entity/SpawnGroup;)Lnet/minecraft/entity/EntityType$Builder;
-
create
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a(Latw;)Latj$a;
intermediary method_5902
Lnet/minecraft/class_1299$class_1300;method_5902(Lnet/minecraft/class_1311;)Lnet/minecraft/class_1299$class_1300;
named create
Lnet/minecraft/entity/EntityType$Builder;create(Lnet/minecraft/entity/SpawnGroup;)Lnet/minecraft/entity/EntityType$Builder;
-
setDimensions
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a(FF)Latj$a;
intermediary method_17687
Lnet/minecraft/class_1299$class_1300;method_17687(FF)Lnet/minecraft/class_1299$class_1300;
named setDimensions
Lnet/minecraft/entity/EntityType$Builder;setDimensions(FF)Lnet/minecraft/entity/EntityType$Builder;
-
disableSummon
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a()Latj$a;
intermediary method_5901
Lnet/minecraft/class_1299$class_1300;method_5901()Lnet/minecraft/class_1299$class_1300;
named disableSummon
Lnet/minecraft/entity/EntityType$Builder;disableSummon()Lnet/minecraft/entity/EntityType$Builder;
-
disableSaving
- Mappings:
Namespace Name Mixin selector official b
Latj$a;b()Latj$a;
intermediary method_5904
Lnet/minecraft/class_1299$class_1300;method_5904()Lnet/minecraft/class_1299$class_1300;
named disableSaving
Lnet/minecraft/entity/EntityType$Builder;disableSaving()Lnet/minecraft/entity/EntityType$Builder;
-
makeFireImmune
- Mappings:
Namespace Name Mixin selector official c
Latj$a;c()Latj$a;
intermediary method_19947
Lnet/minecraft/class_1299$class_1300;method_19947()Lnet/minecraft/class_1299$class_1300;
named makeFireImmune
Lnet/minecraft/entity/EntityType$Builder;makeFireImmune()Lnet/minecraft/entity/EntityType$Builder;
-
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 official a
Latj$a;a([Lbzo;)Latj$a;
intermediary method_29497
Lnet/minecraft/class_1299$class_1300;method_29497([Lnet/minecraft/class_2248;)Lnet/minecraft/class_1299$class_1300;
named allowSpawningInside
Lnet/minecraft/entity/EntityType$Builder;allowSpawningInside([Lnet/minecraft/block/Block;)Lnet/minecraft/entity/EntityType$Builder;
-
spawnableFarFromPlayer
- Mappings:
Namespace Name Mixin selector official d
Latj$a;d()Latj$a;
intermediary method_20815
Lnet/minecraft/class_1299$class_1300;method_20815()Lnet/minecraft/class_1299$class_1300;
named spawnableFarFromPlayer
Lnet/minecraft/entity/EntityType$Builder;spawnableFarFromPlayer()Lnet/minecraft/entity/EntityType$Builder;
-
maxTrackingRange
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a(I)Latj$a;
intermediary method_27299
Lnet/minecraft/class_1299$class_1300;method_27299(I)Lnet/minecraft/class_1299$class_1300;
named maxTrackingRange
Lnet/minecraft/entity/EntityType$Builder;maxTrackingRange(I)Lnet/minecraft/entity/EntityType$Builder;
-
trackingTickInterval
- Mappings:
Namespace Name Mixin selector official b
Latj$a;b(I)Latj$a;
intermediary method_27300
Lnet/minecraft/class_1299$class_1300;method_27300(I)Lnet/minecraft/class_1299$class_1300;
named trackingTickInterval
Lnet/minecraft/entity/EntityType$Builder;trackingTickInterval(I)Lnet/minecraft/entity/EntityType$Builder;
-
build
- Mappings:
Namespace Name Mixin selector official a
Latj$a;a(Ljava/lang/String;)Latj;
intermediary method_5905
Lnet/minecraft/class_1299$class_1300;method_5905(Ljava/lang/String;)Lnet/minecraft/class_1299;
named build
Lnet/minecraft/entity/EntityType$Builder;build(Ljava/lang/String;)Lnet/minecraft/entity/EntityType;
-