Ejemplo n.º 1
0
  protected BlockPattern getSnowmanBasePattern() {
    if (this.snowmanBasePattern == null) {
      this.snowmanBasePattern =
          FactoryBlockPattern.start()
              .aisle(new String[] {" ", "#", "#"})
              .where('#', BlockWorldState.hasState(BlockStateHelper.forBlock(Blocks.snow)))
              .build();
    }

    return this.snowmanBasePattern;
  }
Ejemplo n.º 2
0
  protected BlockPattern getGolemBasePattern() {
    if (this.golemBasePattern == null) {
      this.golemBasePattern =
          FactoryBlockPattern.start()
              .aisle(new String[] {"~ ~", "###", "~#~"})
              .where('#', BlockWorldState.hasState(BlockStateHelper.forBlock(Blocks.iron_block)))
              .where('~', BlockWorldState.hasState(BlockStateHelper.forBlock(Blocks.air)))
              .build();
    }

    return this.golemBasePattern;
  }