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 bbr$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 Lbbr$a;a:Lbbr$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 Lbbr$a;b:Lbcf;
      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 Lbbr$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 Lbbr$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 Lbbr$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 Lbbr$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 Lbbr$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 Lbbr$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 Lbbr$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 Lbbr$a;j:Lbbo;
      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

      private Builder(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbr$a;<init>(Lbbr$b;Lbcf;)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 Lbbr$a;a(Lbbr$b;Lbcf;)Lbbr$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 Lbbr$a;a(Lbcf;)Lbbr$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 Lbbr$a;a(FF)Lbbr$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 Lbbr$a;a()Lbbr$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 Lbbr$a;b()Lbbr$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 Lbbr$a;c()Lbbr$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 Lbbr$a;a([Lcjt;)Lbbr$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 Lbbr$a;d()Lbbr$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 Lbbr$a;a(I)Lbbr$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 Lbbr$a;b(I)Lbbr$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

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