Exemplo n.º 1
0
 protected TorchMat(final BlockFace face) {
   super(
       TORCH_EAST.name(),
       TORCH_EAST.ordinal(),
       TORCH_EAST.getMinecraftId(),
       face.name(),
       combine(face));
   this.face = face;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 @Override
 public TorchMat getAttachedFace(final BlockFace face) {
   return getByID(combine(face.getOppositeFace()));
 }