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