Пример #1
0
 protected TorchMat(final BlockFace face) {
   super(
       TORCH_EAST.name(),
       TORCH_EAST.ordinal(),
       TORCH_EAST.getMinecraftId(),
       face.name(),
       combine(face));
   this.face = face;
 }
Пример #2
0
 protected BedBlockMat(final BlockFace face, final boolean isHeadPart, final boolean isOccupied) {
   super(
       BED_FOOT_SOUTH.name(),
       BED_FOOT_SOUTH.ordinal(),
       BED_FOOT_SOUTH.getMinecraftId(),
       (isHeadPart ? "HEAD_" : "FOOT_") + face.name() + (isOccupied ? "_OCCUPIED" : ""),
       combine(face, isHeadPart, isOccupied),
       BED_FOOT_SOUTH.getHardness(),
       BED_FOOT_SOUTH.getBlastResistance());
   this.blockFacing = face;
   this.isHeadPart = isHeadPart;
   this.isOccupied = isOccupied;
 }
Пример #3
0
 protected PistonBaseMat(
     final String enumName,
     final int id,
     final String minecraftId,
     final BlockFace facing,
     final boolean extended,
     final float hardness,
     final float blastResistance) {
   super(
       enumName,
       id,
       minecraftId,
       facing.name() + (extended ? "_EXTENDED" : ""),
       combine(facing, extended),
       hardness,
       blastResistance);
   this.facing = facing;
   this.extended = extended;
 }