/** * 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()]); }
/** @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); }
/** @return array that contains all sub-types of this block. */ public static IronOreMat[] ironOreTypes() { return byID.values(new IronOreMat[byID.size()]); }
/** * 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); }
/** @return array that contains all sub-types of this block. */ public static IceMat[] iceTypes() { return byID.values(new IceMat[byID.size()]); }
/** * 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); }
/** @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); }
/** @return array that contains all sub-types of this block. */ public static BedBlockMat[] bedBlockTypes() { return byID.values(new BedBlockMat[byID.size()]); }
/** @return array that contains all sub-types of this block. */ public static EndPortalMat[] endPortalTypes() { return byID.values(new EndPortalMat[byID.size()]); }
/** * 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); }
/** * 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); }
/** * 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); }
/** @return array that contains all sub-types of this block. */ public static TorchMat[] torchTypes() { return byID.values(new TorchMat[byID.size()]); }
/** @return array that contains all sub-types of this block. */ public static SpruceFenceMat[] spruceFenceTypes() { return byID.values(new SpruceFenceMat[byID.size()]); }
/** * 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); }
/** @return array that contains all sub-types of this block. */ public static LapisBlockMat[] lapisBlockTypes() { return byID.values(new LapisBlockMat[byID.size()]); }
/** * 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); }
/** * 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); }
/** * 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()]); }