Package net.minecraft.block.entity
Class BlockEntityType.Builder<T extends BlockEntity>
java.lang.Object
net.minecraft.block.entity.BlockEntityType.Builder<T>
- Enclosing class:
BlockEntityType<T extends BlockEntity>
Builder for
BlockEntityType
.- Mappings:
Namespace Name official dcx$b
intermediary net/minecraft/class_2591$class_2592
named net/minecraft/block/entity/BlockEntityType$Builder
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
Builder
(BlockEntityType.BlockEntityFactory<? extends T> factory, Set<Block> blocks) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(com.mojang.datafixers.types.Type<?> type) Builds the block entity type.static <T extends BlockEntity>
BlockEntityType.Builder<T>create
(BlockEntityType.BlockEntityFactory<? extends T> factory, Block[] blocks) Returns a new builder of a block entity type that supportsblocks
.
-
Field Details
-
factory
- Mappings:
Namespace Name Mixin selector official a
Ldcx$b;a:Ldcx$a;
intermediary field_11915
Lnet/minecraft/class_2591$class_2592;field_11915:Lnet/minecraft/class_2591$class_5559;
named factory
Lnet/minecraft/block/entity/BlockEntityType$Builder;factory:Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;
-
blocks
- Mappings:
Namespace Name Mixin selector official b
Ldcx$b;b:Ljava/util/Set;
intermediary field_19316
Lnet/minecraft/class_2591$class_2592;field_19316:Ljava/util/Set;
named blocks
Lnet/minecraft/block/entity/BlockEntityType$Builder;blocks:Ljava/util/Set;
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector official <init>
Ldcx$b;<init>(Ldcx$a;Ljava/util/Set;)V
intermediary <init>
Lnet/minecraft/class_2591$class_2592;<init>(Lnet/minecraft/class_2591$class_5559;Ljava/util/Set;)V
named <init>
Lnet/minecraft/block/entity/BlockEntityType$Builder;<init>(Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;Ljava/util/Set;)V
-
-
Method Details
-
create
public static <T extends BlockEntity> BlockEntityType.Builder<T> create(BlockEntityType.BlockEntityFactory<? extends T> factory, Block[] blocks) Returns a new builder of a block entity type that supportsblocks
.- Returns:
- a new builder of a block entity type that supports
blocks
- Mappings:
Namespace Name Mixin selector official a
Ldcx$b;a(Ldcx$a;[Lcsv;)Ldcx$b;
intermediary method_20528
Lnet/minecraft/class_2591$class_2592;method_20528(Lnet/minecraft/class_2591$class_5559;[Lnet/minecraft/class_2248;)Lnet/minecraft/class_2591$class_2592;
named create
Lnet/minecraft/block/entity/BlockEntityType$Builder;create(Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;[Lnet/minecraft/block/Block;)Lnet/minecraft/block/entity/BlockEntityType$Builder;
-
build
Builds the block entity type.- Parameters:
type
- the datafixer type of the block entity, ornull
if there is none- Returns:
- the built block entity type
- Mappings:
Namespace Name Mixin selector official a
Ldcx$b;a(Lcom/mojang/datafixers/types/Type;)Ldcx;
intermediary method_11034
Lnet/minecraft/class_2591$class_2592;method_11034(Lcom/mojang/datafixers/types/Type;)Lnet/minecraft/class_2591;
named build
Lnet/minecraft/block/entity/BlockEntityType$Builder;build(Lcom/mojang/datafixers/types/Type;)Lnet/minecraft/block/entity/BlockEntityType;
-