public class BlockEntityType<T extends BlockEntity> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockEntityType.Builder<T extends BlockEntity> |
Constructor and Description |
---|
BlockEntityType(Supplier<? extends T> supplier,
Set<Block> blocks,
com.mojang.datafixers.types.Type<?> type) |
Modifier and Type | Method and Description |
---|---|
private static <T extends BlockEntity> |
create(String string,
BlockEntityType.Builder<T> builder) |
T |
get(BlockView world,
BlockPos pos) |
static Identifier |
getId(BlockEntityType<?> blockEntityType) |
T |
instantiate() |
boolean |
supports(Block block) |
private static final Logger LOGGER
public static final BlockEntityType<FurnaceBlockEntity> FURNACE
public static final BlockEntityType<ChestBlockEntity> CHEST
public static final BlockEntityType<TrappedChestBlockEntity> TRAPPED_CHEST
public static final BlockEntityType<EnderChestBlockEntity> ENDER_CHEST
public static final BlockEntityType<JukeboxBlockEntity> JUKEBOX
public static final BlockEntityType<DispenserBlockEntity> DISPENSER
public static final BlockEntityType<DropperBlockEntity> DROPPER
public static final BlockEntityType<SignBlockEntity> SIGN
public static final BlockEntityType<MobSpawnerBlockEntity> MOB_SPAWNER
public static final BlockEntityType<PistonBlockEntity> PISTON
public static final BlockEntityType<BrewingStandBlockEntity> BREWING_STAND
public static final BlockEntityType<EnchantingTableBlockEntity> ENCHANTING_TABLE
public static final BlockEntityType<EndPortalBlockEntity> END_PORTAL
public static final BlockEntityType<BeaconBlockEntity> BEACON
public static final BlockEntityType<SkullBlockEntity> SKULL
public static final BlockEntityType<DaylightDetectorBlockEntity> DAYLIGHT_DETECTOR
public static final BlockEntityType<HopperBlockEntity> HOPPER
public static final BlockEntityType<ComparatorBlockEntity> COMPARATOR
public static final BlockEntityType<BannerBlockEntity> BANNER
public static final BlockEntityType<StructureBlockBlockEntity> STRUCTURE_BLOCK
public static final BlockEntityType<EndGatewayBlockEntity> END_GATEWAY
public static final BlockEntityType<CommandBlockBlockEntity> COMMAND_BLOCK
public static final BlockEntityType<ShulkerBoxBlockEntity> SHULKER_BOX
public static final BlockEntityType<BedBlockEntity> BED
public static final BlockEntityType<ConduitBlockEntity> CONDUIT
public static final BlockEntityType<BarrelBlockEntity> BARREL
public static final BlockEntityType<SmokerBlockEntity> SMOKER
public static final BlockEntityType<BlastFurnaceBlockEntity> BLAST_FURNACE
public static final BlockEntityType<LecternBlockEntity> LECTERN
public static final BlockEntityType<BellBlockEntity> BELL
public static final BlockEntityType<JigsawBlockEntity> JIGSAW
public static final BlockEntityType<CampfireBlockEntity> CAMPFIRE
public static final BlockEntityType<BeehiveBlockEntity> BEEHIVE
private final Supplier<? extends T extends BlockEntity> supplier
private final com.mojang.datafixers.types.Type<?> type
@Nullable public static Identifier getId(BlockEntityType<?> blockEntityType)
private static <T extends BlockEntity> BlockEntityType<T> create(String string, BlockEntityType.Builder<T> builder)
public boolean supports(Block block)