/**
  * Returns one of AcaciaStairs sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of AcaciaStairs or null
  */
 public static AcaciaStairsMat getByID(final int id) {
   return byID.get((byte) id);
 }
 /** @return array that contains all sub-types of this block. */
 public static AcaciaStairsMat[] acaciaStairsTypes() {
   return byID.values(new AcaciaStairsMat[byID.size()]);
 }
Beispiel #3
0
 /** @return array that contains all sub-types of this block. */
 public static PlanksMat[] planksTypes() {
   return byID.values(new PlanksMat[byID.size()]);
 }
Beispiel #4
0
 /**
  * Returns one of RedstoneOre sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of RedstoneOre or null
  */
 public static RedstoneOreMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #5
0
 /** @return array that contains all sub-types of this block. */
 public static IronOreMat[] ironOreTypes() {
   return byID.values(new IronOreMat[byID.size()]);
 }
Beispiel #6
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 IronOreMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.name(), element);
 }
Beispiel #7
0
 /** @return array that contains all sub-types of this block. */
 public static IceMat[] iceTypes() {
   return byID.values(new IceMat[byID.size()]);
 }
Beispiel #8
0
 /**
  * Returns one of Torch sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of Torch or null
  */
 public static TorchMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #9
0
 /**
  * Returns one of SnowLayer sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of SnowLayer or null
  */
 public static SnowLayerMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #10
0
 /** @return array that contains all sub-types of this block. */
 public static SnowLayerMat[] snowLayerTypes() {
   return byID.values(new SnowLayerMat[byID.size()]);
 }
 /** @return array that contains all sub-types of this block. */
 public static StainedGlassMat[] stainedGlassTypes() {
   return byID.values(new StainedGlassMat[byID.size()]);
 }
 /**
  * Returns one of StainedGlass sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of StainedGlass or null
  */
 public static StainedGlassMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #13
0
 /** @return array that contains all sub-types of this block. */
 public static BedBlockMat[] bedBlockTypes() {
   return byID.values(new BedBlockMat[byID.size()]);
 }
Beispiel #14
0
 /** @return array that contains all sub-types of this block. */
 public static EndPortalMat[] endPortalTypes() {
   return byID.values(new EndPortalMat[byID.size()]);
 }
Beispiel #15
0
 /**
  * Returns one of SpruceFence sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of SpruceFence or null
  */
 public static SpruceFenceMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #16
0
 /**
  * Returns one of EndPortal sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of EndPortal or null
  */
 public static EndPortalMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #17
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 SpruceFenceMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.getTypeName(), element);
 }
Beispiel #18
0
 /** @return array that contains all sub-types of this block. */
 public static TorchMat[] torchTypes() {
   return byID.values(new TorchMat[byID.size()]);
 }
Beispiel #19
0
 /** @return array that contains all sub-types of this block. */
 public static SpruceFenceMat[] spruceFenceTypes() {
   return byID.values(new SpruceFenceMat[byID.size()]);
 }
Beispiel #20
0
 /**
  * Returns one of IronOre sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of IronOre or null
  */
 public static IronOreMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #21
0
 /** @return array that contains all sub-types of this block. */
 public static LapisBlockMat[] lapisBlockTypes() {
   return byID.values(new LapisBlockMat[byID.size()]);
 }
Beispiel #22
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 PlanksMat element) {
   byID.put((byte) element.getType(), element);
   byName.put(element.getTypeName(), element);
 }
Beispiel #23
0
 /**
  * Returns one of LapisBlock sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of LapisBlock or null
  */
 public static LapisBlockMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #24
0
 /**
  * Returns one of Planks sub-type based on sub-id, may return null
  *
  * @param id sub-type id
  * @return sub-type of Planks or null
  */
 public static PlanksMat getByID(final int id) {
   return byID.get((byte) id);
 }
Beispiel #25
0
 /** @return array that contains all sub-types of this block. */
 public static RedstoneOreMat[] redstoneOreTypes() {
   return byID.values(new RedstoneOreMat[byID.size()]);
 }