/**
  * 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()]);
 }
Exemple #3
0
 /** @return array that contains all sub-types of this block. */
 public static PlanksMat[] planksTypes() {
   return byID.values(new PlanksMat[byID.size()]);
 }
 /**
  * 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);
 }
Exemple #5
0
 /** @return array that contains all sub-types of this block. */
 public static IronOreMat[] ironOreTypes() {
   return byID.values(new IronOreMat[byID.size()]);
 }
Exemple #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);
 }
Exemple #7
0
 /** @return array that contains all sub-types of this block. */
 public static IceMat[] iceTypes() {
   return byID.values(new IceMat[byID.size()]);
 }
Exemple #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);
 }
 /**
  * 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);
 }
Exemple #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);
 }
Exemple #13
0
 /** @return array that contains all sub-types of this block. */
 public static BedBlockMat[] bedBlockTypes() {
   return byID.values(new BedBlockMat[byID.size()]);
 }
Exemple #14
0
 /** @return array that contains all sub-types of this block. */
 public static EndPortalMat[] endPortalTypes() {
   return byID.values(new EndPortalMat[byID.size()]);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #18
0
 /** @return array that contains all sub-types of this block. */
 public static TorchMat[] torchTypes() {
   return byID.values(new TorchMat[byID.size()]);
 }
Exemple #19
0
 /** @return array that contains all sub-types of this block. */
 public static SpruceFenceMat[] spruceFenceTypes() {
   return byID.values(new SpruceFenceMat[byID.size()]);
 }
Exemple #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);
 }
Exemple #21
0
 /** @return array that contains all sub-types of this block. */
 public static LapisBlockMat[] lapisBlockTypes() {
   return byID.values(new LapisBlockMat[byID.size()]);
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #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);
 }
 /** @return array that contains all sub-types of this block. */
 public static RedstoneOreMat[] redstoneOreTypes() {
   return byID.values(new RedstoneOreMat[byID.size()]);
 }