Exemple #1
0
  protected ShapeDetector j() {
    if (this.N == null) {
      this.N =
          ShapeDetectorBuilder.a()
              .a(new String[] {"   ", "###", "~#~"})
              .a('#', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.SOUL_SAND)))
              .a('~', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.AIR)))
              .b();
    }

    return this.N;
  }
  protected ShapeDetector getDetectorIronGolemPart() {
    if (this.ironGolemPart == null) {
      this.ironGolemPart =
          ShapeDetectorBuilder.a()
              .a(new String[] {"~ ~", "###", "~#~"})
              .a('#', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.IRON_BLOCK)))
              .a('~', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.AIR)))
              .b();
    }

    return this.ironGolemPart;
  }
Exemple #3
0
  protected ShapeDetector l() {
    if (this.O == null) {
      this.O =
          ShapeDetectorBuilder.a()
              .a(new String[] {"^^^", "###", "~#~"})
              .a('#', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.SOUL_SAND)))
              .a('^', BlockSkull.M)
              .a('~', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.AIR)))
              .b();
    }

    return this.O;
  }
  protected ShapeDetector getDetectorSnowGolemPart() {
    if (this.snowGolemPart == null) {
      this.snowGolemPart =
          ShapeDetectorBuilder.a()
              .a(new String[] {" ", "#", "#"})
              .a('#', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.SNOW)))
              .b();
    }

    return this.snowGolemPart;
  }
  protected ShapeDetector getDetectorSnowGolem() {
    if (this.snowGolem == null) {
      this.snowGolem =
          ShapeDetectorBuilder.a()
              .a(new String[] {"^", "#", "#"})
              .a('^', ShapeDetectorBlock.a(BlockPumpkin.Q))
              .a('#', ShapeDetectorBlock.a(BlockStatePredicate.a(Blocks.SNOW)))
              .b();
    }

    return this.snowGolem;
  }