Uses of Class
net.minecraft.block.entity.BlockEntityType
Package
Description
-
Uses of BlockEntityType in net.minecraft.block
Modifier and TypeFieldDescriptionprotected final Supplier<BlockEntityType<? extends E>>
AbstractChestBlock.entityTypeRetriever
Modifier and TypeMethodDescriptionBlockEntityType<? extends ChestBlockEntity>
ChestBlock.getExpectedEntityType()
Modifier and TypeMethodDescriptionprotected static <T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractFurnaceBlock.checkType
(World world, BlockEntityType<T> givenType, BlockEntityType<? extends AbstractFurnaceBlockEntity> expectedType) protected static <E extends BlockEntity,
A extends BlockEntity>
@Nullable BlockEntityTicker<A>BlockWithEntity.checkType
(BlockEntityType<A> givenType, BlockEntityType<E> expectedType, BlockEntityTicker<? super E> ticker) Returns the ticker if the given type and expected type are the same, ornull
if they are different.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractBlock.AbstractBlockState.getBlockEntityTicker
(World world, BlockEntityType<T> blockEntityType) <T extends BlockEntity>
@Nullable BlockEntityTicker<T>AbstractSkullBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>BeaconBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>BeehiveBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>BellBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>BlastFurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.default <T extends BlockEntity>
@Nullable BlockEntityTicker<T>BlockEntityProvider.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>BrewingStandBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>CampfireBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>ChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>ConduitBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>DaylightDetectorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>EnchantingTableBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>EnderChestBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>EndGatewayBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>FurnaceBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>HopperBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>JukeboxBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>PistonExtensionBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>SculkCatalystBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>SculkSensorBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>SculkShriekerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>ShulkerBoxBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>SmokerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.<T extends BlockEntity>
@Nullable BlockEntityTicker<T>SpawnerBlock.getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.static <S extends BlockEntity>
DoubleBlockProperties.PropertySource<S>DoubleBlockProperties.toPropertySource
(BlockEntityType<S> blockEntityType, Function<BlockState, DoubleBlockProperties.Type> typeMapper, Function<BlockState, Direction> function, DirectionProperty directionProperty, BlockState state, WorldAccess world, BlockPos pos, BiPredicate<WorldAccess, BlockPos> fallbackTester) ModifierConstructorDescriptionprotected
AbstractChestBlock
(AbstractBlock.Settings settings, Supplier<BlockEntityType<? extends E>> entityTypeSupplier) protected
ChestBlock
(AbstractBlock.Settings settings, Supplier<BlockEntityType<? extends ChestBlockEntity>> entityTypeSupplier) -
Uses of BlockEntityType in net.minecraft.block.entity
Modifier and TypeFieldDescriptionstatic final BlockEntityType<BannerBlockEntity>
BlockEntityType.BANNER
static final BlockEntityType<BarrelBlockEntity>
BlockEntityType.BARREL
static final BlockEntityType<BeaconBlockEntity>
BlockEntityType.BEACON
static final BlockEntityType<BedBlockEntity>
BlockEntityType.BED
static final BlockEntityType<BeehiveBlockEntity>
BlockEntityType.BEEHIVE
static final BlockEntityType<BellBlockEntity>
BlockEntityType.BELL
static final BlockEntityType<BlastFurnaceBlockEntity>
BlockEntityType.BLAST_FURNACE
static final BlockEntityType<BrewingStandBlockEntity>
BlockEntityType.BREWING_STAND
static final BlockEntityType<CampfireBlockEntity>
BlockEntityType.CAMPFIRE
static final BlockEntityType<ChestBlockEntity>
BlockEntityType.CHEST
static final BlockEntityType<ChiseledBookshelfBlockEntity>
BlockEntityType.CHISELED_BOOKSHELF
static final BlockEntityType<CommandBlockBlockEntity>
BlockEntityType.COMMAND_BLOCK
static final BlockEntityType<ComparatorBlockEntity>
BlockEntityType.COMPARATOR
static final BlockEntityType<ConduitBlockEntity>
BlockEntityType.CONDUIT
static final BlockEntityType<DaylightDetectorBlockEntity>
BlockEntityType.DAYLIGHT_DETECTOR
static final BlockEntityType<DispenserBlockEntity>
BlockEntityType.DISPENSER
static final BlockEntityType<DropperBlockEntity>
BlockEntityType.DROPPER
static final BlockEntityType<EnchantingTableBlockEntity>
BlockEntityType.ENCHANTING_TABLE
static final BlockEntityType<EndGatewayBlockEntity>
BlockEntityType.END_GATEWAY
static final BlockEntityType<EndPortalBlockEntity>
BlockEntityType.END_PORTAL
static final BlockEntityType<EnderChestBlockEntity>
BlockEntityType.ENDER_CHEST
static final BlockEntityType<FurnaceBlockEntity>
BlockEntityType.FURNACE
static final BlockEntityType<HangingSignBlockEntity>
BlockEntityType.HANGING_SIGN
static final BlockEntityType<HopperBlockEntity>
BlockEntityType.HOPPER
static final BlockEntityType<JigsawBlockEntity>
BlockEntityType.JIGSAW
static final BlockEntityType<JukeboxBlockEntity>
BlockEntityType.JUKEBOX
static final BlockEntityType<LecternBlockEntity>
BlockEntityType.LECTERN
static final BlockEntityType<MobSpawnerBlockEntity>
BlockEntityType.MOB_SPAWNER
static final BlockEntityType<PistonBlockEntity>
BlockEntityType.PISTON
static final BlockEntityType<SculkCatalystBlockEntity>
BlockEntityType.SCULK_CATALYST
static final BlockEntityType<SculkSensorBlockEntity>
BlockEntityType.SCULK_SENSOR
static final BlockEntityType<SculkShriekerBlockEntity>
BlockEntityType.SCULK_SHRIEKER
static final BlockEntityType<ShulkerBoxBlockEntity>
BlockEntityType.SHULKER_BOX
static final BlockEntityType<SignBlockEntity>
BlockEntityType.SIGN
static final BlockEntityType<SkullBlockEntity>
BlockEntityType.SKULL
static final BlockEntityType<SmokerBlockEntity>
BlockEntityType.SMOKER
static final BlockEntityType<StructureBlockBlockEntity>
BlockEntityType.STRUCTURE_BLOCK
static final BlockEntityType<TrappedChestBlockEntity>
BlockEntityType.TRAPPED_CHEST
private final BlockEntityType<?>
BlockEntity.type
Modifier and TypeMethodDescriptionBlockEntityType.Builder.build
(com.mojang.datafixers.types.Type<?> type) Builds the block entity type.private static <T extends BlockEntity>
BlockEntityType<T>BlockEntityType.create
(String id, BlockEntityType.Builder<T> builder) BlockEntity.getType()
Modifier and TypeMethodDescriptionstatic @Nullable Identifier
BlockEntityType.getId
(BlockEntityType<?> type) Returns the block entity type's ID, ornull
if it is unregistered.static void
BlockEntity.writeIdToNbt
(NbtCompound nbt, BlockEntityType<?> type) Writes the ID oftype
tonbt
under theid
key.ModifierConstructorDescriptionprotected
AbstractFurnaceBlockEntity
(BlockEntityType<?> blockEntityType, BlockPos pos, BlockState state, RecipeType<? extends AbstractCookingRecipe> recipeType) BlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
ChestBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
DispenserBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
EndPortalBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
LockableContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) protected
LootableContainerBlockEntity
(BlockEntityType<?> type, BlockPos pos, BlockState state) SignBlockEntity
(BlockEntityType type, BlockPos pos, BlockState state) -
Uses of BlockEntityType in net.minecraft.client.render.block.entity
Modifier and TypeFieldDescriptionprivate static final Map<BlockEntityType<?>,
BlockEntityRendererFactory<?>> BlockEntityRendererFactories.FACTORIES
private Map<BlockEntityType<?>,
BlockEntityRenderer<?>> BlockEntityRenderDispatcher.renderers
Modifier and TypeMethodDescriptionstatic Map<BlockEntityType<?>,
BlockEntityRenderer<?>> BlockEntityRendererFactories.reload
(BlockEntityRendererFactory.Context args) Modifier and TypeMethodDescriptionprivate static <T extends BlockEntity>
voidBlockEntityRendererFactories.register
(BlockEntityType<? extends T> type, BlockEntityRendererFactory<T> factory) -
Uses of BlockEntityType in net.minecraft.item
Modifier and TypeMethodDescriptionstatic void
BlockItem.setBlockEntityNbt
(ItemStack stack, BlockEntityType<?> blockEntityType, NbtCompound tag) -
Uses of BlockEntityType in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final BlockEntityType<?>
SetContentsLootFunction.Builder.type
(package private) final BlockEntityType<?>
SetContentsLootFunction.type
(package private) final BlockEntityType<?>
SetLootTableLootFunction.type
Modifier and TypeMethodDescriptionSetContentsLootFunction.builder
(BlockEntityType<?> type) static ConditionalLootFunction.Builder<?>
SetLootTableLootFunction.builder
(BlockEntityType<?> type, Identifier id) static ConditionalLootFunction.Builder<?>
SetLootTableLootFunction.builder
(BlockEntityType<?> type, Identifier id, long seed) ModifierConstructorDescriptionBuilder
(BlockEntityType<?> type) (package private)
SetContentsLootFunction
(LootCondition[] conditions, BlockEntityType<?> type, List<LootPoolEntry> entries) (package private)
SetLootTableLootFunction
(LootCondition[] conditions, Identifier id, long seed, BlockEntityType<?> type) -
Uses of BlockEntityType in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final BlockEntityType<?>
BlockEntityUpdateS2CPacket.blockEntityType
(package private) final BlockEntityType<?>
ChunkData.BlockEntityData.type
Modifier and TypeMethodDescriptionvoid
ChunkData.BlockEntityVisitor.accept
(BlockPos pos, BlockEntityType<?> type, @Nullable NbtCompound nbt) ModifierConstructorDescriptionprivate
BlockEntityData
(int localXz, int y, BlockEntityType<?> type, @Nullable NbtCompound nbt) private
BlockEntityUpdateS2CPacket
(BlockPos pos, BlockEntityType<?> blockEntityType, NbtCompound nbt) -
Uses of BlockEntityType in net.minecraft.registry
Modifier and TypeFieldDescriptionstatic final Registry<BlockEntityType<?>>
Registries.BLOCK_ENTITY_TYPE
static final RegistryKey<Registry<BlockEntityType<?>>>
RegistryKeys.BLOCK_ENTITY_TYPE
-
Uses of BlockEntityType in net.minecraft.world
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
Optional<T>BlockView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) default <T extends BlockEntity>
Optional<T>RegistryWorldView.getBlockEntity
(BlockPos pos, BlockEntityType<T> type) <T extends BlockEntity>
Optional<T>TestableWorld.getBlockEntity
(BlockPos pos, BlockEntityType<T> type)