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