mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Clean up MaterialLib stack string docs and comments
This commit is contained in:
2 files changed
+2
-4
No files matched your search
@@ -265,7 +265,6 @@ public abstract class BlockUtil {
|
||||
} while (stillInside.test(tile));
|
||||
block = world.getBlock(x, y - depth, z);
|
||||
|
||||
// Werkstoff blocks hold their material in the tile entity, so the world metadata is not the item damage.
|
||||
if (bw && BW_MetaGenerated_WerkstoffBlocksClass != null
|
||||
&& BW_MetaGenerated_WerkstoffBlocksClass.isInstance(block)) {
|
||||
return new ItemStack(block, 1, block.getDamageValue(world, x, y - depth, z));
|
||||
|
||||
@@ -8,10 +8,9 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.UniqueIdentifier;
|
||||
|
||||
/// Resolves the `ml:<Material>:<shape>` stack string form, which names a MaterialLib item by material and shape
|
||||
/// rather than by the metadata index that shifts between sessions.
|
||||
/// rather than by a metadata index that shifts between sessions.
|
||||
///
|
||||
/// The only class naming a MaterialLib type. [Stack] loads it only once `materiallib` is present, so the dependency
|
||||
/// stays soft.
|
||||
/// MaterialLib types are named only here, so [Stack] can gate loading this class on `materiallib` being present.
|
||||
public abstract class MaterialLibStacks {
|
||||
|
||||
public static Stack parse(String mlString) {
|
||||
|
||||
Reference in new issue
Block a user