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

    • factory

      private final EntityType.EntityFactory<T extends Entity> 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 Lbvq$a;a:Lbvq$b;
    • spawnGroup

      private final SpawnGroup 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 Lbvq$a;b:Lbwi;
    • canSpawnInside

      private ImmutableSet<Block> 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 Lbvq$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 Lbvq$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 Lbvq$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 Lbvq$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 Lbvq$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 Lbvq$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 Lbvq$a;i:I
    • dimensions

      private EntityDimensions 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 Lbvq$a;j:Lbvm;
    • 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 Lbvq$a;k:F
    • attachments

      private EntityAttachments.Builder 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 Lbvq$a;l:Lbvl$a;
    • requiredFeatures

      private FeatureSet 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 Lbvq$a;m:Lcss;
    • lootTable

      Mappings:
      Namespace Name Mixin selector
      named lootTable Lnet/minecraft/entity/EntityType$Builder;lootTable:Lnet/minecraft/registry/RegistryKeyedValue;
      intermediary field_53972 Lnet/minecraft/class_1299$class_1300;field_53972:Lnet/minecraft/class_10162;
      official n Lbvq$a;n:Lalr;
    • translationKey

      private RegistryKeyedValue<EntityType<?>,String> translationKey
      Mappings:
      Namespace Name Mixin selector
      named translationKey Lnet/minecraft/entity/EntityType$Builder;translationKey:Lnet/minecraft/registry/RegistryKeyedValue;
      intermediary field_53973 Lnet/minecraft/class_1299$class_1300;field_53973:Lnet/minecraft/class_10162;
      official o Lbvq$a;o:Lalr;
  • Constructor Details

    • Builder

      private Builder(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup)
      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> Lbvq$a;<init>(Lbvq$b;Lbwi;)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 Lbvq$a;a(Lbvq$b;Lbwi;)Lbvq$a;
    • create

      public static <T extends Entity> EntityType.Builder<T> create(SpawnGroup spawnGroup)
      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 Lbvq$a;a(Lbwi;)Lbvq$a;
    • dimensions

      public EntityType.Builder<T> dimensions(float width, float height)
      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 Lbvq$a;a(FF)Lbvq$a;
    • spawnBoxScale

      public EntityType.Builder<T> spawnBoxScale(float 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 Lbvq$a;a(F)Lbvq$a;
    • eyeHeight

      public EntityType.Builder<T> eyeHeight(float 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 Lbvq$a;b(F)Lbvq$a;
    • passengerAttachments

      public EntityType.Builder<T> passengerAttachments(float[] offsetYs)
      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 Lbvq$a;a([F)Lbvq$a;
    • passengerAttachments

      public EntityType.Builder<T> passengerAttachments(Vec3d[] 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 Lbvq$a;a([Lfbx;)Lbvq$a;
    • vehicleAttachment

      public EntityType.Builder<T> vehicleAttachment(Vec3d 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 Lbvq$a;a(Lfbx;)Lbvq$a;
    • vehicleAttachment

      public EntityType.Builder<T> vehicleAttachment(float offsetY)
      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 Lbvq$a;c(F)Lbvq$a;
    • nameTagAttachment

      public EntityType.Builder<T> nameTagAttachment(float offsetY)
      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 Lbvq$a;d(F)Lbvq$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 Lbvq$a;a(Lbvk;FFF)Lbvq$a;
    • attachment

      public EntityType.Builder<T> attachment(EntityAttachmentType type, Vec3d offset)
      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 Lbvq$a;a(Lbvk;Lfbx;)Lbvq$a;
    • disableSummon

      public EntityType.Builder<T> 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 Lbvq$a;a()Lbvq$a;
    • disableSaving

      public EntityType.Builder<T> 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 Lbvq$a;b()Lbvq$a;
    • makeFireImmune

      public EntityType.Builder<T> 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 Lbvq$a;c()Lbvq$a;
    • 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
      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 Lbvq$a;a([Ldkl;)Lbvq$a;
    • spawnableFarFromPlayer

      public EntityType.Builder<T> 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 Lbvq$a;d()Lbvq$a;
    • maxTrackingRange

      public EntityType.Builder<T> maxTrackingRange(int 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 Lbvq$a;a(I)Lbvq$a;
    • trackingTickInterval

      public EntityType.Builder<T> trackingTickInterval(int 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 Lbvq$a;b(I)Lbvq$a;
    • requires

      public EntityType.Builder<T> requires(FeatureFlag[] features)
      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 Lbvq$a;a([Lcsq;)Lbvq$a;
    • dropsNothing

      public EntityType.Builder<T> dropsNothing()
      Mappings:
      Namespace Name Mixin selector
      named dropsNothing Lnet/minecraft/entity/EntityType$Builder;dropsNothing()Lnet/minecraft/entity/EntityType$Builder;
      intermediary method_63006 Lnet/minecraft/class_1299$class_1300;method_63006()Lnet/minecraft/class_1299$class_1300;
      official e Lbvq$a;e()Lbvq$a;
    • build

      public EntityType<T> build(RegistryKey<EntityType<?>> registryKey)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/entity/EntityType$Builder;build(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/entity/EntityType;
      intermediary method_5905 Lnet/minecraft/class_1299$class_1300;method_5905(Lnet/minecraft/class_5321;)Lnet/minecraft/class_1299;
      official a Lbvq$a;a(Laly;)Lbvq;