mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-24 05:44:32 +00:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
20 lines
422 B
Java
20 lines
422 B
Java
package WayofTime.alchemicalWizardry.api;
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import cpw.mods.fml.common.registry.GameData;
|
|
|
|
/**
|
|
* A Block with a set metadata. Similar to an ItemStack.
|
|
*/
|
|
public record BlockStack(Block block, int meta) {
|
|
|
|
@Nonnull
|
|
@Override
|
|
public String toString() {
|
|
return GameData.getBlockRegistry().getNameForObject(block) + ":" + meta;
|
|
}
|
|
}
|