Class BlockEntityType.Builder<T extends BlockEntity>

java.lang.Object
net.minecraft.block.entity.BlockEntityType.Builder<T>
Enclosing class:
BlockEntityType<T extends BlockEntity>

public static final class BlockEntityType.Builder<T extends BlockEntity> extends Object
Builder for BlockEntityType.
Mappings:
Namespace Name
named net/minecraft/block/entity/BlockEntityType$Builder
intermediary net/minecraft/class_2591$class_2592
official dpl$b
  • Field Details

    • factory

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

      final Set<Block> blocks
      Mappings:
      Namespace Name Mixin selector
      named blocks Lnet/minecraft/block/entity/BlockEntityType$Builder;blocks:Ljava/util/Set;
      intermediary field_19316 Lnet/minecraft/class_2591$class_2592;field_19316:Ljava/util/Set;
      official b Ldpl$b;b:Ljava/util/Set;
  • Constructor Details

    • Builder

      private Builder(BlockEntityType.BlockEntityFactory<? extends T> factory, Set<Block> blocks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/BlockEntityType$Builder;<init>(Lnet/minecraft/block/entity/BlockEntityType$BlockEntityFactory;Ljava/util/Set;)V
      intermediary <init> Lnet/minecraft/class_2591$class_2592;<init>(Lnet/minecraft/class_2591$class_5559;Ljava/util/Set;)V
      official <init> Ldpl$b;<init>(Ldpl$a;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 supports blocks.
      Returns:
      a new builder of a block entity type that supports blocks
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Ldpl$b;a(Ldpl$a;[Ldfb;)Ldpl$b;
    • build

      public BlockEntityType<T> build(com.mojang.datafixers.types.Type<?> type)
      Builds the block entity type.
      Parameters:
      type - the datafixer type of the block entity, or null if there is none
      Returns:
      the built block entity type
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/block/entity/BlockEntityType$Builder;build(Lcom/mojang/datafixers/types/Type;)Lnet/minecraft/block/entity/BlockEntityType;
      intermediary method_11034 Lnet/minecraft/class_2591$class_2592;method_11034(Lcom/mojang/datafixers/types/Type;)Lnet/minecraft/class_2591;
      official a Ldpl$b;a(Lcom/mojang/datafixers/types/Type;)Ldpl;