Class BlockEntityType<T extends BlockEntity>

java.lang.Object
net.minecraft.block.entity.BlockEntityType<T>

public class BlockEntityType<T extends BlockEntity> extends Object
Represents a type of block entities. There is one instance of block entity for each placed block entity; this class represents the type of the placed block entities, like chests or furnaces.

Block entity types are pre-defined and registered in Registries.BLOCK_ENTITY_TYPE. To create a block entity type, the

invalid reference
builder
should be used.

Blocks that have corresponding block entities must implement BlockEntityProvider and list it in the builder of the block entity type. Multiple blocks or block states can be associated with a single block entity type.

See Also:
Mappings:
Namespace Name
named net/minecraft/block/entity/BlockEntityType
intermediary net/minecraft/class_2591
official duy
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/block/entity/BlockEntityType;LOGGER:Lorg/slf4j/Logger;
      intermediary field_11893 Lnet/minecraft/class_2591;field_11893:Lorg/slf4j/Logger;
      official T Lduy;T:Lorg/slf4j/Logger;
    • FURNACE

      public static final BlockEntityType<FurnaceBlockEntity> FURNACE
      Mappings:
      Namespace Name Mixin selector
      named FURNACE Lnet/minecraft/block/entity/BlockEntityType;FURNACE:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11903 Lnet/minecraft/class_2591;field_11903:Lnet/minecraft/class_2591;
      official a Lduy;a:Lduy;
    • CHEST

      public static final BlockEntityType<ChestBlockEntity> CHEST
      Mappings:
      Namespace Name Mixin selector
      named CHEST Lnet/minecraft/block/entity/BlockEntityType;CHEST:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11914 Lnet/minecraft/class_2591;field_11914:Lnet/minecraft/class_2591;
      official b Lduy;b:Lduy;
    • TRAPPED_CHEST

      public static final BlockEntityType<TrappedChestBlockEntity> TRAPPED_CHEST
      Mappings:
      Namespace Name Mixin selector
      named TRAPPED_CHEST Lnet/minecraft/block/entity/BlockEntityType;TRAPPED_CHEST:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11891 Lnet/minecraft/class_2591;field_11891:Lnet/minecraft/class_2591;
      official c Lduy;c:Lduy;
    • ENDER_CHEST

      public static final BlockEntityType<EnderChestBlockEntity> ENDER_CHEST
      Mappings:
      Namespace Name Mixin selector
      named ENDER_CHEST Lnet/minecraft/block/entity/BlockEntityType;ENDER_CHEST:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11901 Lnet/minecraft/class_2591;field_11901:Lnet/minecraft/class_2591;
      official d Lduy;d:Lduy;
    • JUKEBOX

      public static final BlockEntityType<JukeboxBlockEntity> JUKEBOX
      Mappings:
      Namespace Name Mixin selector
      named JUKEBOX Lnet/minecraft/block/entity/BlockEntityType;JUKEBOX:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11907 Lnet/minecraft/class_2591;field_11907:Lnet/minecraft/class_2591;
      official e Lduy;e:Lduy;
    • DISPENSER

      public static final BlockEntityType<DispenserBlockEntity> DISPENSER
      Mappings:
      Namespace Name Mixin selector
      named DISPENSER Lnet/minecraft/block/entity/BlockEntityType;DISPENSER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11887 Lnet/minecraft/class_2591;field_11887:Lnet/minecraft/class_2591;
      official f Lduy;f:Lduy;
    • DROPPER

      public static final BlockEntityType<DropperBlockEntity> DROPPER
      Mappings:
      Namespace Name Mixin selector
      named DROPPER Lnet/minecraft/block/entity/BlockEntityType;DROPPER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11899 Lnet/minecraft/class_2591;field_11899:Lnet/minecraft/class_2591;
      official g Lduy;g:Lduy;
    • SIGN

      public static final BlockEntityType<SignBlockEntity> SIGN
      Mappings:
      Namespace Name Mixin selector
      named SIGN Lnet/minecraft/block/entity/BlockEntityType;SIGN:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11911 Lnet/minecraft/class_2591;field_11911:Lnet/minecraft/class_2591;
      official h Lduy;h:Lduy;
    • HANGING_SIGN

      public static final BlockEntityType<HangingSignBlockEntity> HANGING_SIGN
      Mappings:
      Namespace Name Mixin selector
      named HANGING_SIGN Lnet/minecraft/block/entity/BlockEntityType;HANGING_SIGN:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_40330 Lnet/minecraft/class_2591;field_40330:Lnet/minecraft/class_2591;
      official i Lduy;i:Lduy;
    • MOB_SPAWNER

      public static final BlockEntityType<MobSpawnerBlockEntity> MOB_SPAWNER
      Mappings:
      Namespace Name Mixin selector
      named MOB_SPAWNER Lnet/minecraft/block/entity/BlockEntityType;MOB_SPAWNER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11889 Lnet/minecraft/class_2591;field_11889:Lnet/minecraft/class_2591;
      official j Lduy;j:Lduy;
    • CREAKING_HEART

      public static final BlockEntityType<CreakingHeartBlockEntity> CREAKING_HEART
      Mappings:
      Namespace Name Mixin selector
      named CREAKING_HEART Lnet/minecraft/block/entity/BlockEntityType;CREAKING_HEART:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_54774 Lnet/minecraft/class_2591;field_54774:Lnet/minecraft/class_2591;
      official k Lduy;k:Lduy;
    • PISTON

      public static final BlockEntityType<PistonBlockEntity> PISTON
      Mappings:
      Namespace Name Mixin selector
      named PISTON Lnet/minecraft/block/entity/BlockEntityType;PISTON:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11897 Lnet/minecraft/class_2591;field_11897:Lnet/minecraft/class_2591;
      official l Lduy;l:Lduy;
    • BREWING_STAND

      public static final BlockEntityType<BrewingStandBlockEntity> BREWING_STAND
      Mappings:
      Namespace Name Mixin selector
      named BREWING_STAND Lnet/minecraft/block/entity/BlockEntityType;BREWING_STAND:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11894 Lnet/minecraft/class_2591;field_11894:Lnet/minecraft/class_2591;
      official m Lduy;m:Lduy;
    • ENCHANTING_TABLE

      public static final BlockEntityType<EnchantingTableBlockEntity> ENCHANTING_TABLE
      Mappings:
      Namespace Name Mixin selector
      named ENCHANTING_TABLE Lnet/minecraft/block/entity/BlockEntityType;ENCHANTING_TABLE:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11912 Lnet/minecraft/class_2591;field_11912:Lnet/minecraft/class_2591;
      official n Lduy;n:Lduy;
    • END_PORTAL

      public static final BlockEntityType<EndPortalBlockEntity> END_PORTAL
      Mappings:
      Namespace Name Mixin selector
      named END_PORTAL Lnet/minecraft/block/entity/BlockEntityType;END_PORTAL:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11898 Lnet/minecraft/class_2591;field_11898:Lnet/minecraft/class_2591;
      official o Lduy;o:Lduy;
    • BEACON

      public static final BlockEntityType<BeaconBlockEntity> BEACON
      Mappings:
      Namespace Name Mixin selector
      named BEACON Lnet/minecraft/block/entity/BlockEntityType;BEACON:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11890 Lnet/minecraft/class_2591;field_11890:Lnet/minecraft/class_2591;
      official p Lduy;p:Lduy;
    • SKULL

      public static final BlockEntityType<SkullBlockEntity> SKULL
      Mappings:
      Namespace Name Mixin selector
      named SKULL Lnet/minecraft/block/entity/BlockEntityType;SKULL:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11913 Lnet/minecraft/class_2591;field_11913:Lnet/minecraft/class_2591;
      official q Lduy;q:Lduy;
    • DAYLIGHT_DETECTOR

      public static final BlockEntityType<DaylightDetectorBlockEntity> DAYLIGHT_DETECTOR
      Mappings:
      Namespace Name Mixin selector
      named DAYLIGHT_DETECTOR Lnet/minecraft/block/entity/BlockEntityType;DAYLIGHT_DETECTOR:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11900 Lnet/minecraft/class_2591;field_11900:Lnet/minecraft/class_2591;
      official r Lduy;r:Lduy;
    • HOPPER

      public static final BlockEntityType<HopperBlockEntity> HOPPER
      Mappings:
      Namespace Name Mixin selector
      named HOPPER Lnet/minecraft/block/entity/BlockEntityType;HOPPER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11888 Lnet/minecraft/class_2591;field_11888:Lnet/minecraft/class_2591;
      official s Lduy;s:Lduy;
    • COMPARATOR

      public static final BlockEntityType<ComparatorBlockEntity> COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      named COMPARATOR Lnet/minecraft/block/entity/BlockEntityType;COMPARATOR:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11908 Lnet/minecraft/class_2591;field_11908:Lnet/minecraft/class_2591;
      official t Lduy;t:Lduy;
    • STRUCTURE_BLOCK

      public static final BlockEntityType<StructureBlockBlockEntity> STRUCTURE_BLOCK
      Mappings:
      Namespace Name Mixin selector
      named STRUCTURE_BLOCK Lnet/minecraft/block/entity/BlockEntityType;STRUCTURE_BLOCK:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11895 Lnet/minecraft/class_2591;field_11895:Lnet/minecraft/class_2591;
      official v Lduy;v:Lduy;
    • END_GATEWAY

      public static final BlockEntityType<EndGatewayBlockEntity> END_GATEWAY
      Mappings:
      Namespace Name Mixin selector
      named END_GATEWAY Lnet/minecraft/block/entity/BlockEntityType;END_GATEWAY:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11906 Lnet/minecraft/class_2591;field_11906:Lnet/minecraft/class_2591;
      official w Lduy;w:Lduy;
    • COMMAND_BLOCK

      public static final BlockEntityType<CommandBlockBlockEntity> COMMAND_BLOCK
      Mappings:
      Namespace Name Mixin selector
      named COMMAND_BLOCK Lnet/minecraft/block/entity/BlockEntityType;COMMAND_BLOCK:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11904 Lnet/minecraft/class_2591;field_11904:Lnet/minecraft/class_2591;
      official x Lduy;x:Lduy;
    • SHULKER_BOX

      public static final BlockEntityType<ShulkerBoxBlockEntity> SHULKER_BOX
      Mappings:
      Namespace Name Mixin selector
      named SHULKER_BOX Lnet/minecraft/block/entity/BlockEntityType;SHULKER_BOX:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11896 Lnet/minecraft/class_2591;field_11896:Lnet/minecraft/class_2591;
      official y Lduy;y:Lduy;
    • BED

      public static final BlockEntityType<BedBlockEntity> BED
      Mappings:
      Namespace Name Mixin selector
      named BED Lnet/minecraft/block/entity/BlockEntityType;BED:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11910 Lnet/minecraft/class_2591;field_11910:Lnet/minecraft/class_2591;
      official z Lduy;z:Lduy;
    • CONDUIT

      public static final BlockEntityType<ConduitBlockEntity> CONDUIT
      Mappings:
      Namespace Name Mixin selector
      named CONDUIT Lnet/minecraft/block/entity/BlockEntityType;CONDUIT:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_11902 Lnet/minecraft/class_2591;field_11902:Lnet/minecraft/class_2591;
      official A Lduy;A:Lduy;
    • BARREL

      public static final BlockEntityType<BarrelBlockEntity> BARREL
      Mappings:
      Namespace Name Mixin selector
      named BARREL Lnet/minecraft/block/entity/BlockEntityType;BARREL:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16411 Lnet/minecraft/class_2591;field_16411:Lnet/minecraft/class_2591;
      official B Lduy;B:Lduy;
    • SMOKER

      public static final BlockEntityType<SmokerBlockEntity> SMOKER
      Mappings:
      Namespace Name Mixin selector
      named SMOKER Lnet/minecraft/block/entity/BlockEntityType;SMOKER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16414 Lnet/minecraft/class_2591;field_16414:Lnet/minecraft/class_2591;
      official C Lduy;C:Lduy;
    • BLAST_FURNACE

      public static final BlockEntityType<BlastFurnaceBlockEntity> BLAST_FURNACE
      Mappings:
      Namespace Name Mixin selector
      named BLAST_FURNACE Lnet/minecraft/block/entity/BlockEntityType;BLAST_FURNACE:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16415 Lnet/minecraft/class_2591;field_16415:Lnet/minecraft/class_2591;
      official D Lduy;D:Lduy;
    • LECTERN

      public static final BlockEntityType<LecternBlockEntity> LECTERN
      Mappings:
      Namespace Name Mixin selector
      named LECTERN Lnet/minecraft/block/entity/BlockEntityType;LECTERN:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16412 Lnet/minecraft/class_2591;field_16412:Lnet/minecraft/class_2591;
      official E Lduy;E:Lduy;
    • BELL

      public static final BlockEntityType<BellBlockEntity> BELL
      Mappings:
      Namespace Name Mixin selector
      named BELL Lnet/minecraft/block/entity/BlockEntityType;BELL:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16413 Lnet/minecraft/class_2591;field_16413:Lnet/minecraft/class_2591;
      official F Lduy;F:Lduy;
    • JIGSAW

      public static final BlockEntityType<JigsawBlockEntity> JIGSAW
      Mappings:
      Namespace Name Mixin selector
      named JIGSAW Lnet/minecraft/block/entity/BlockEntityType;JIGSAW:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_16549 Lnet/minecraft/class_2591;field_16549:Lnet/minecraft/class_2591;
      official G Lduy;G:Lduy;
    • CAMPFIRE

      public static final BlockEntityType<CampfireBlockEntity> CAMPFIRE
      Mappings:
      Namespace Name Mixin selector
      named CAMPFIRE Lnet/minecraft/block/entity/BlockEntityType;CAMPFIRE:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_17380 Lnet/minecraft/class_2591;field_17380:Lnet/minecraft/class_2591;
      official H Lduy;H:Lduy;
    • BEEHIVE

      public static final BlockEntityType<BeehiveBlockEntity> BEEHIVE
      Mappings:
      Namespace Name Mixin selector
      named BEEHIVE Lnet/minecraft/block/entity/BlockEntityType;BEEHIVE:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_20431 Lnet/minecraft/class_2591;field_20431:Lnet/minecraft/class_2591;
      official I Lduy;I:Lduy;
    • SCULK_SENSOR

      public static final BlockEntityType<SculkSensorBlockEntity> SCULK_SENSOR
      Mappings:
      Namespace Name Mixin selector
      named SCULK_SENSOR Lnet/minecraft/block/entity/BlockEntityType;SCULK_SENSOR:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_28117 Lnet/minecraft/class_2591;field_28117:Lnet/minecraft/class_2591;
      official J Lduy;J:Lduy;
    • CALIBRATED_SCULK_SENSOR

      public static final BlockEntityType<CalibratedSculkSensorBlockEntity> CALIBRATED_SCULK_SENSOR
      Mappings:
      Namespace Name Mixin selector
      named CALIBRATED_SCULK_SENSOR Lnet/minecraft/block/entity/BlockEntityType;CALIBRATED_SCULK_SENSOR:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_43258 Lnet/minecraft/class_2591;field_43258:Lnet/minecraft/class_2591;
      official K Lduy;K:Lduy;
    • SCULK_CATALYST

      public static final BlockEntityType<SculkCatalystBlockEntity> SCULK_CATALYST
      Mappings:
      Namespace Name Mixin selector
      named SCULK_CATALYST Lnet/minecraft/block/entity/BlockEntityType;SCULK_CATALYST:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_37647 Lnet/minecraft/class_2591;field_37647:Lnet/minecraft/class_2591;
      official L Lduy;L:Lduy;
    • SCULK_SHRIEKER

      public static final BlockEntityType<SculkShriekerBlockEntity> SCULK_SHRIEKER
      Mappings:
      Namespace Name Mixin selector
      named SCULK_SHRIEKER Lnet/minecraft/block/entity/BlockEntityType;SCULK_SHRIEKER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_37648 Lnet/minecraft/class_2591;field_37648:Lnet/minecraft/class_2591;
      official M Lduy;M:Lduy;
    • CHISELED_BOOKSHELF

      public static final BlockEntityType<ChiseledBookshelfBlockEntity> CHISELED_BOOKSHELF
      Mappings:
      Namespace Name Mixin selector
      named CHISELED_BOOKSHELF Lnet/minecraft/block/entity/BlockEntityType;CHISELED_BOOKSHELF:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_40329 Lnet/minecraft/class_2591;field_40329:Lnet/minecraft/class_2591;
      official N Lduy;N:Lduy;
    • BRUSHABLE_BLOCK

      public static final BlockEntityType<BrushableBlockEntity> BRUSHABLE_BLOCK
      Mappings:
      Namespace Name Mixin selector
      named BRUSHABLE_BLOCK Lnet/minecraft/block/entity/BlockEntityType;BRUSHABLE_BLOCK:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_42780 Lnet/minecraft/class_2591;field_42780:Lnet/minecraft/class_2591;
      official O Lduy;O:Lduy;
    • DECORATED_POT

      public static final BlockEntityType<DecoratedPotBlockEntity> DECORATED_POT
      Mappings:
      Namespace Name Mixin selector
      named DECORATED_POT Lnet/minecraft/block/entity/BlockEntityType;DECORATED_POT:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_42781 Lnet/minecraft/class_2591;field_42781:Lnet/minecraft/class_2591;
      official P Lduy;P:Lduy;
    • CRAFTER

      public static final BlockEntityType<CrafterBlockEntity> CRAFTER
      Mappings:
      Namespace Name Mixin selector
      named CRAFTER Lnet/minecraft/block/entity/BlockEntityType;CRAFTER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_46808 Lnet/minecraft/class_2591;field_46808:Lnet/minecraft/class_2591;
      official Q Lduy;Q:Lduy;
    • TRIAL_SPAWNER

      public static final BlockEntityType<TrialSpawnerBlockEntity> TRIAL_SPAWNER
      Mappings:
      Namespace Name Mixin selector
      named TRIAL_SPAWNER Lnet/minecraft/block/entity/BlockEntityType;TRIAL_SPAWNER:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_47352 Lnet/minecraft/class_2591;field_47352:Lnet/minecraft/class_2591;
      official R Lduy;R:Lduy;
    • VAULT

      public static final BlockEntityType<VaultBlockEntity> VAULT
      Mappings:
      Namespace Name Mixin selector
      named VAULT Lnet/minecraft/block/entity/BlockEntityType;VAULT:Lnet/minecraft/block/entity/BlockEntityType;
      intermediary field_48859 Lnet/minecraft/class_2591;field_48859:Lnet/minecraft/class_2591;
      official S Lduy;S:Lduy;
    • factory

      private final BlockEntityType.BlockEntityFactory<? extends T extends BlockEntity> factory
      Mappings:
      Namespace Name Mixin selector
      named factory Lnet/minecraft/block/entity/BlockEntityType;factory:Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;
      intermediary field_11892 Lnet/minecraft/class_2591;field_11892:Lnet/minecraft/class_2591$class_5559;
      official U Lduy;U:Lduy$a;
    • blocks

      private final Set<Block> blocks
      Mappings:
      Namespace Name Mixin selector
      named blocks Lnet/minecraft/block/entity/BlockEntityType;blocks:Ljava/util/Set;
      intermediary field_19315 Lnet/minecraft/class_2591;field_19315:Ljava/util/Set;
      official V Lduy;V:Ljava/util/Set;
    • registryEntry

      private final RegistryEntry.Reference<BlockEntityType<?>> registryEntry
      Mappings:
      Namespace Name Mixin selector
      named registryEntry Lnet/minecraft/block/entity/BlockEntityType;registryEntry:Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary field_45786 Lnet/minecraft/class_2591;field_45786:Lnet/minecraft/class_6880$class_6883;
      official W Lduy;W:Ljq$c;
  • Constructor Details

    • BlockEntityType

      private BlockEntityType(BlockEntityType.BlockEntityFactory<? extends T> factory, Set<Block> blocks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/BlockEntityType;<init>(Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;Ljava/util/Set;)V
      intermediary <init> Lnet/minecraft/class_2591;<init>(Lnet/minecraft/class_2591$class_5559;Ljava/util/Set;)V
      official <init> Lduy;<init>(Lduy$a;Ljava/util/Set;)V
  • Method Details

    • getId

      @Nullable public static @Nullable Identifier getId(BlockEntityType<?> type)
      Returns the block entity type's ID, or null if it is unregistered.

      This should never return null under normal circumstances.

      Returns:
      the block entity type's ID, or null if it is unregistered
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/block/entity/BlockEntityType;getId(Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/util/Identifier;
      intermediary method_11033 Lnet/minecraft/class_2591;method_11033(Lnet/minecraft/class_2591;)Lnet/minecraft/class_2960;
      official a Lduy;a(Lduy;)Lalz;
    • create

      private static <T extends BlockEntity> BlockEntityType<T> create(String id, BlockEntityType.BlockEntityFactory<? extends T> blockEntityFactory, Block[] block)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/block/entity/BlockEntityType;create(Ljava/lang/String;Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;[Lnet/minecraft/block/Block;)Lnet/minecraft/block/entity/BlockEntityType;
      intermediary method_11030 Lnet/minecraft/class_2591;method_11030(Ljava/lang/String;Lnet/minecraft/class_2591$class_5559;[Lnet/minecraft/class_2248;)Lnet/minecraft/class_2591;
      official a Lduy;a(Ljava/lang/String;Lduy$a;[Ldkl;)Lduy;
    • instantiate

      @Nullable public T instantiate(BlockPos pos, BlockState state)
      Returns a new instance of the block entity.
      Returns:
      a new instance of the block entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named instantiate Lnet/minecraft/block/entity/BlockEntityType;instantiate(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_11032 Lnet/minecraft/class_2591;method_11032(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      official a Lduy;a(Ljh;Ldxu;)Lduw;
    • supports

      public boolean supports(BlockState state)
      Returns whether the block entity type supports state.

      The block, not the block state, determines the corresponding block entity type; therefore, for states of the same block, the return value is the same.

      Returns:
      whether the block entity type supports state
      Mappings:
      Namespace Name Mixin selector
      named supports Lnet/minecraft/block/entity/BlockEntityType;supports(Lnet/minecraft/block/BlockState;)Z
      intermediary method_20526 Lnet/minecraft/class_2591;method_20526(Lnet/minecraft/class_2680;)Z
      official a Lduy;a(Ldxu;)Z
    • getRegistryEntry

      @Deprecated public RegistryEntry.Reference<BlockEntityType<?>> getRegistryEntry()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named getRegistryEntry Lnet/minecraft/block/entity/BlockEntityType;getRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry$Reference;
      intermediary method_53254 Lnet/minecraft/class_2591;method_53254()Lnet/minecraft/class_6880$class_6883;
      official a Lduy;a()Ljq$c;
    • get

      @Nullable public T get(BlockView world, BlockPos pos)
      Returns the block entity instance of this type at pos, or null if no such block entity exists.
      Returns:
      the block entity instance of this type at pos, or null if no such block entity exists
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/block/entity/BlockEntityType;get(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_24182 Lnet/minecraft/class_2591;method_24182(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      official a Lduy;a(Ldgm;Ljh;)Lduw;