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 blz$a
intermediary net/minecraft/class_1299$class_1300
named net/minecraft/entity/EntityType$Builder
  • Field Details

    • factory

      private final EntityType.EntityFactory<T extends Entity> factory
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a:Lblz$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

      private final SpawnGroup spawnGroup
      Mappings:
      Namespace Name Mixin selector
      official b Lblz$a;b:Lbmo;
      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

      private ImmutableSet<Block> canSpawnInside
      Mappings:
      Namespace Name Mixin selector
      official c Lblz$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 Lblz$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 Lblz$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 Lblz$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 Lblz$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 Lblz$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 Lblz$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

      private EntityDimensions dimensions
      Mappings:
      Namespace Name Mixin selector
      official j Lblz$a;j:Lblw;
      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;
    • requiredFeatures

      private FeatureSet requiredFeatures
      Mappings:
      Namespace Name Mixin selector
      official k Lblz$a;k:Lchs;
      intermediary field_40117 Lnet/minecraft/class_1299$class_1300;field_40117:Lnet/minecraft/class_7699;
      named requiredFeatures Lnet/minecraft/entity/EntityType$Builder;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
  • Constructor Details

    • Builder

      private Builder(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblz$a;<init>(Lblz$b;Lbmo;)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 Lblz$a;a(Lblz$b;Lbmo;)Lblz$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

      public static <T extends Entity> EntityType.Builder<T> create(SpawnGroup spawnGroup)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a(Lbmo;)Lblz$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

      public EntityType.Builder<T> setDimensions(float width, float height)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a(FF)Lblz$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

      public EntityType.Builder<T> disableSummon()
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a()Lblz$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

      public EntityType.Builder<T> disableSaving()
      Mappings:
      Namespace Name Mixin selector
      official b Lblz$a;b()Lblz$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

      public EntityType.Builder<T> makeFireImmune()
      Mappings:
      Namespace Name Mixin selector
      official c Lblz$a;c()Lblz$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

      public 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.

      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 Lblz$a;a([Lcwq;)Lblz$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

      public EntityType.Builder<T> spawnableFarFromPlayer()
      Mappings:
      Namespace Name Mixin selector
      official d Lblz$a;d()Lblz$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

      public EntityType.Builder<T> maxTrackingRange(int maxTrackingRange)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a(I)Lblz$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

      public EntityType.Builder<T> trackingTickInterval(int trackingTickInterval)
      Mappings:
      Namespace Name Mixin selector
      official b Lblz$a;b(I)Lblz$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;
    • requires

      public EntityType.Builder<T> requires(FeatureFlag[] features)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a([Lchq;)Lblz$a;
      intermediary method_45323 Lnet/minecraft/class_1299$class_1300;method_45323([Lnet/minecraft/class_7696;)Lnet/minecraft/class_1299$class_1300;
      named requires Lnet/minecraft/entity/EntityType$Builder;requires([Lnet/minecraft/resource/featuretoggle/FeatureFlag;)Lnet/minecraft/entity/EntityType$Builder;
    • build

      public EntityType<T> build(String id)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz$a;a(Ljava/lang/String;)Lblz;
      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;