Class BlockEntityType<T extends BlockEntity>
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntityType<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static final class
BlockEntityType.Builder<T extends BlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockEntityType<BannerBlockEntity>
static final BlockEntityType<BarrelBlockEntity>
static final BlockEntityType<BeaconBlockEntity>
static final BlockEntityType<BedBlockEntity>
static final BlockEntityType<BeehiveBlockEntity>
static final BlockEntityType<BellBlockEntity>
static final BlockEntityType<BlastFurnaceBlockEntity>
static final BlockEntityType<BrewingStandBlockEntity>
static final BlockEntityType<BrushableBlockEntity>
static final BlockEntityType<CalibratedSculkSensorBlockEntity>
static final BlockEntityType<CampfireBlockEntity>
static final BlockEntityType<ChestBlockEntity>
static final BlockEntityType<ChiseledBookShelfBlockEntity>
static final BlockEntityType<CommandBlockEntity>
static final BlockEntityType<ComparatorBlockEntity>
static final BlockEntityType<ConduitBlockEntity>
private final com.mojang.datafixers.types.Type<?>
static final BlockEntityType<DaylightDetectorBlockEntity>
static final BlockEntityType<DecoratedPotBlockEntity>
static final BlockEntityType<DispenserBlockEntity>
static final BlockEntityType<DropperBlockEntity>
static final BlockEntityType<EnchantmentTableBlockEntity>
static final BlockEntityType<TheEndGatewayBlockEntity>
static final BlockEntityType<TheEndPortalBlockEntity>
static final BlockEntityType<EnderChestBlockEntity>
private final BlockEntityType.BlockEntitySupplier<? extends T>
static final BlockEntityType<FurnaceBlockEntity>
static final BlockEntityType<HangingSignBlockEntity>
static final BlockEntityType<HopperBlockEntity>
static final BlockEntityType<JigsawBlockEntity>
static final BlockEntityType<JukeboxBlockEntity>
static final BlockEntityType<LecternBlockEntity>
private static final org.slf4j.Logger
static final BlockEntityType<SpawnerBlockEntity>
static final BlockEntityType<PistonMovingBlockEntity>
static final BlockEntityType<SculkCatalystBlockEntity>
static final BlockEntityType<SculkSensorBlockEntity>
static final BlockEntityType<SculkShriekerBlockEntity>
static final BlockEntityType<ShulkerBoxBlockEntity>
static final BlockEntityType<SignBlockEntity>
static final BlockEntityType<SkullBlockEntity>
static final BlockEntityType<SmokerBlockEntity>
static final BlockEntityType<StructureBlockEntity>
static final BlockEntityType<TrappedChestBlockEntity>
-
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityType
(BlockEntityType.BlockEntitySupplier<? extends T> p_155259_, Set<Block> p_155260_, com.mojang.datafixers.types.Type<?> p_155261_) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(BlockPos p_155265_, BlockState p_155266_) getBlockEntity
(BlockGetter p_58950_, BlockPos p_58951_) static ResourceLocation
getKey
(BlockEntityType<?> p_58955_) boolean
isValid
(BlockState p_155263_) private static <T extends BlockEntity>
BlockEntityType<T>register
(String p_58957_, BlockEntityType.Builder<T> p_58958_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
FURNACE
-
CHEST
-
TRAPPED_CHEST
-
ENDER_CHEST
-
JUKEBOX
-
DISPENSER
-
DROPPER
-
SIGN
-
HANGING_SIGN
-
MOB_SPAWNER
-
PISTON
-
BREWING_STAND
-
ENCHANTING_TABLE
-
END_PORTAL
-
BEACON
-
SKULL
-
DAYLIGHT_DETECTOR
-
HOPPER
-
COMPARATOR
-
BANNER
-
STRUCTURE_BLOCK
-
END_GATEWAY
-
COMMAND_BLOCK
-
SHULKER_BOX
-
BED
-
CONDUIT
-
BARREL
-
SMOKER
-
BLAST_FURNACE
-
LECTERN
-
BELL
-
JIGSAW
-
CAMPFIRE
-
BEEHIVE
-
SCULK_SENSOR
-
CALIBRATED_SCULK_SENSOR
-
SCULK_CATALYST
-
SCULK_SHRIEKER
-
CHISELED_BOOKSHELF
-
BRUSHABLE_BLOCK
-
DECORATED_POT
-
factory
-
validBlocks
-
dataType
private final com.mojang.datafixers.types.Type<?> dataType
-
-
Constructor Details
-
BlockEntityType
public BlockEntityType(BlockEntityType.BlockEntitySupplier<? extends T> p_155259_, Set<Block> p_155260_, com.mojang.datafixers.types.Type<?> p_155261_)
-
-
Method Details
-
getKey
-
register
private static <T extends BlockEntity> BlockEntityType<T> register(String p_58957_, BlockEntityType.Builder<T> p_58958_) -
create
-
isValid
-
getBlockEntity
-