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 btc$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 Lbtc$a;a:Lbtc$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 Lbtc$a;b:Lbtu;
    • 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 Lbtc$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 Lbtc$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 Lbtc$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 Lbtc$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 Lbtc$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 Lbtc$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 Lbtc$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 Lbtc$a;j:Lbsz;
    • 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 Lbtc$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 Lbtc$a;l:Lbsy$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 Lbtc$a;m:Lcpn;
  • 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> Lbtc$a;<init>(Lbtc$b;Lbtu;)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 Lbtc$a;a(Lbtc$b;Lbtu;)Lbtc$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 Lbtc$a;a(Lbtu;)Lbtc$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 Lbtc$a;a(FF)Lbtc$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 Lbtc$a;a(F)Lbtc$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 Lbtc$a;b(F)Lbtc$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 Lbtc$a;a([F)Lbtc$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 Lbtc$a;a([Levt;)Lbtc$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 Lbtc$a;a(Levt;)Lbtc$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 Lbtc$a;c(F)Lbtc$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 Lbtc$a;d(F)Lbtc$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 Lbtc$a;a(Lbsx;FFF)Lbtc$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 Lbtc$a;a(Lbsx;Levt;)Lbtc$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 Lbtc$a;a()Lbtc$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 Lbtc$a;b()Lbtc$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 Lbtc$a;c()Lbtc$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 Lbtc$a;a([Ldfb;)Lbtc$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 Lbtc$a;d()Lbtc$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 Lbtc$a;a(I)Lbtc$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 Lbtc$a;b(I)Lbtc$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 Lbtc$a;a([Lcpl;)Lbtc$a;
    • build

      public EntityType<T> build(String id)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/entity/EntityType$Builder;build(Ljava/lang/String;)Lnet/minecraft/entity/EntityType;
      intermediary method_5905 Lnet/minecraft/class_1299$class_1300;method_5905(Ljava/lang/String;)Lnet/minecraft/class_1299;
      official a Lbtc$a;a(Ljava/lang/String;)Lbtc;