Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /** @return array that contains all sub-types of this block. */
 public static AcaciaStairsMat[] acaciaStairsTypes() {
   return byID.values(new AcaciaStairsMat[byID.size()]);
 }
Ejemplo n.º 3
0
 /** @return array that contains all sub-types of this block. */
 public static PlanksMat[] planksTypes() {
   return byID.values(new PlanksMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 /** @return array that contains all sub-types of this block. */
 public static IronOreMat[] ironOreTypes() {
   return byID.values(new IronOreMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 /** @return array that contains all sub-types of this block. */
 public static IceMat[] iceTypes() {
   return byID.values(new IceMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 10
0
 /** @return array that contains all sub-types of this block. */
 public static SnowLayerMat[] snowLayerTypes() {
   return byID.values(new SnowLayerMat[byID.size()]);
 }
Ejemplo n.º 11
0
 /** @return array that contains all sub-types of this block. */
 public static StainedGlassMat[] stainedGlassTypes() {
   return byID.values(new StainedGlassMat[byID.size()]);
 }
Ejemplo n.º 12
0
 /**
  * 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);
 }
Ejemplo n.º 13
0
 /** @return array that contains all sub-types of this block. */
 public static BedBlockMat[] bedBlockTypes() {
   return byID.values(new BedBlockMat[byID.size()]);
 }
Ejemplo n.º 14
0
 /** @return array that contains all sub-types of this block. */
 public static EndPortalMat[] endPortalTypes() {
   return byID.values(new EndPortalMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 18
0
 /** @return array that contains all sub-types of this block. */
 public static TorchMat[] torchTypes() {
   return byID.values(new TorchMat[byID.size()]);
 }
Ejemplo n.º 19
0
 /** @return array that contains all sub-types of this block. */
 public static SpruceFenceMat[] spruceFenceTypes() {
   return byID.values(new SpruceFenceMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 21
0
 /** @return array that contains all sub-types of this block. */
 public static LapisBlockMat[] lapisBlockTypes() {
   return byID.values(new LapisBlockMat[byID.size()]);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 25
0
 /** @return array that contains all sub-types of this block. */
 public static RedstoneOreMat[] redstoneOreTypes() {
   return byID.values(new RedstoneOreMat[byID.size()]);
 }