示例#1
0
 static {
   TorchMat.register(TORCH_EAST);
   TorchMat.register(TORCH_WEST);
   TorchMat.register(TORCH_SOUTH);
   TorchMat.register(TORCH_NORTH);
   TorchMat.register(TORCH_UP);
 }
示例#2
0
 protected TorchMat(final BlockFace face) {
   super(
       TORCH_EAST.name(),
       TORCH_EAST.ordinal(),
       TORCH_EAST.getMinecraftId(),
       face.name(),
       combine(face));
   this.face = face;
 }
示例#3
0
 @Override
 public TorchMat[] types() {
   return TorchMat.torchTypes();
 }
示例#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);
 }