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
official cwn$b
intermediary net/minecraft/class_2591$class_2592
named net/minecraft/block/entity/BlockEntityType$Builder
  • Field Details

    • factory

      private final BlockEntityType.BlockEntityFactory<? extends T extends BlockEntity> factory
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn$b;a:Lcwn$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

      final Set<Block> blocks
      Mappings:
      Namespace Name Mixin selector
      official b Lcwn$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

      private Builder(BlockEntityType.BlockEntityFactory<? extends T> factory, Set<Block> blocks)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcwn$b;<init>(Lcwn$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 supports blocks.
      Returns:
      a new builder of a block entity type that supports blocks
      Mappings:
      Namespace Name Mixin selector
      official a Lcwn$b;a(Lcwn$a;[Lcmt;)Lcwn$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

      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
      official a Lcwn$b;a(Lcom/mojang/datafixers/types/Type;)Lcwn;
      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;