Esempio n. 1
0
 static {
   TorchMat.register(TORCH_EAST);
   TorchMat.register(TORCH_WEST);
   TorchMat.register(TORCH_SOUTH);
   TorchMat.register(TORCH_NORTH);
   TorchMat.register(TORCH_UP);
 }
Esempio n. 2
0
 protected TorchMat(final BlockFace face) {
   super(
       TORCH_EAST.name(),
       TORCH_EAST.ordinal(),
       TORCH_EAST.getMinecraftId(),
       face.name(),
       combine(face));
   this.face = face;
 }
Esempio n. 3
0
 @Override
 public TorchMat[] types() {
   return TorchMat.torchTypes();
 }
Esempio n. 4
0
 /**
  * Register new sub-type, may replace existing sub-types. Should be used only if you know what are
  * you doing, it will not create fully usable material.
  *
  * @param element sub-type to register
  */
 public static void register(final TorchMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.name(), element);
 }