Class BlockEntityType<T extends BlockEntity>

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

public class BlockEntityType<T extends BlockEntity> extends Object
Mappings:
Namespace Name
official csn
intermediary net/minecraft/class_2591
named net/minecraft/block/entity/BlockEntityType
  • Field Details

    • LOGGER

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      private final com.mojang.datafixers.types.Type<?> type
      Mappings:
      Namespace Name Mixin selector
      official N Lcsn;N:Lcom/mojang/datafixers/types/Type;
      intermediary field_11909 Lnet/minecraft/class_2591;field_11909:Lcom/mojang/datafixers/types/Type;
      named type Lnet/minecraft/block/entity/BlockEntityType;type:Lcom/mojang/datafixers/types/Type;
  • Constructor Details

    • BlockEntityType

      public BlockEntityType(BlockEntityType.BlockEntityFactory<? extends T> factory, Set<Block> blocks, com.mojang.datafixers.types.Type<?> type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcsn;<init>(Lcsn$a;Ljava/util/Set;Lcom/mojang/datafixers/types/Type;)V
      intermediary <init> Lnet/minecraft/class_2591;<init>(Lnet/minecraft/class_2591$class_5559;Ljava/util/Set;Lcom/mojang/datafixers/types/Type;)V
      named <init> Lnet/minecraft/block/entity/BlockEntityType;<init>(Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;Ljava/util/Set;Lcom/mojang/datafixers/types/Type;)V
  • Method Details

    • getId

      @Nullable public static @Nullable Identifier getId(BlockEntityType<?> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn;a(Lcsn;)Laaj;
      intermediary method_11033 Lnet/minecraft/class_2591;method_11033(Lnet/minecraft/class_2591;)Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/block/entity/BlockEntityType;getId(Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/util/Identifier;
    • create

      private static <T extends BlockEntity> BlockEntityType<T> create(String id, BlockEntityType.Builder<T> builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn;a(Ljava/lang/String;Lcsn$b;)Lcsn;
      intermediary method_11030 Lnet/minecraft/class_2591;method_11030(Ljava/lang/String;Lnet/minecraft/class_2591$class_2592;)Lnet/minecraft/class_2591;
      named create Lnet/minecraft/block/entity/BlockEntityType;create(Ljava/lang/String;Lnet/minecraft/block/entity/BlockEntityType$Builder;)Lnet/minecraft/block/entity/BlockEntityType;
    • instantiate

      @Nullable public T instantiate(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn;a(Lgt;Lcur;)Lcsl;
      intermediary method_11032 Lnet/minecraft/class_2591;method_11032(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      named instantiate Lnet/minecraft/block/entity/BlockEntityType;instantiate(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
    • supports

      public boolean supports(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn;a(Lcur;)Z
      intermediary method_20526 Lnet/minecraft/class_2591;method_20526(Lnet/minecraft/class_2680;)Z
      named supports Lnet/minecraft/block/entity/BlockEntityType;supports(Lnet/minecraft/block/BlockState;)Z
    • get

      @Nullable public T get(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn;a(Lcfg;Lgt;)Lcsl;
      intermediary method_24182 Lnet/minecraft/class_2591;method_24182(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      named get Lnet/minecraft/block/entity/BlockEntityType;get(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;