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>
public static class EntityType.Builder<T extends Entity> extends Object
- Mappings:
Namespace Name official aqz$a
intermediary net/minecraft/class_1299$class_1300
named net/minecraft/entity/EntityType$Builder
-
Field Summary
Fields Modifier and Type Field Description private ImmutableSet<Block>
canSpawnInside
private EntityDimensions
dimensions
private EntityType.EntityFactory<T>
factory
private boolean
fireImmune
private int
maxTrackingRange
private boolean
saveable
private boolean
spawnableFarFromPlayer
private SpawnGroup
spawnGroup
private boolean
summonable
private int
trackingTickInterval
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup)
-
Method Summary
Modifier and Type Method Description EntityType.Builder<T>
allowSpawningInside(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.EntityType<T>
build(String id)
static <T extends Entity>
EntityType.Builder<T>create(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup)
static <T extends Entity>
EntityType.Builder<T>create(SpawnGroup spawnGroup)
EntityType.Builder<T>
disableSaving()
EntityType.Builder<T>
disableSummon()
EntityType.Builder<T>
makeFireImmune()
EntityType.Builder<T>
maxTrackingRange(int maxTrackingRange)
EntityType.Builder<T>
setDimensions(float width, float height)
EntityType.Builder<T>
spawnableFarFromPlayer()
EntityType.Builder<T>
trackingTickInterval(int trackingTickInterval)
-
Field Details
-
factory
- Mappings:
Namespace Name Mixin selector official a
Laqz$a;a:Laqz$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
Laqz$a;b:Lark;
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
Laqz$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
Laqz$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
Laqz$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
Laqz$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
Laqz$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
Laqz$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
Laqz$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
Laqz$a;j:Laqw;
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>
Laqz$a;<init>(Laqz$b;Lark;)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
Laqz$a;a(Laqz$b;Lark;)Laqz$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
Laqz$a;a(Lark;)Laqz$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
Laqz$a;a(FF)Laqz$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
Laqz$a;a()Laqz$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
Laqz$a;b()Laqz$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
Laqz$a;c()Laqz$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
Laqz$a;a([Lbwu;)Laqz$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
Laqz$a;d()Laqz$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
Laqz$a;a(I)Laqz$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
Laqz$a;b(I)Laqz$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
Laqz$a;a(Ljava/lang/String;)Laqz;
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;
-