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
Mappings:
Namespace Name
official csn$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 Lcsn$b;a:Lcsn$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 Lcsn$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> Lcsn$b;<init>(Lcsn$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)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn$b;a(Lcsn$a;[Lciw;)Lcsn$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)
      Mappings:
      Namespace Name Mixin selector
      official a Lcsn$b;a(Lcom/mojang/datafixers/types/Type;)Lcsn;
      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;