mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-28 07:35:44 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
a711c0495e
commit
21f9083d10
83 files changed
+1855
-2448
No files matched your search
@@ -3,28 +3,25 @@ package mantle.blocks;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameData;
|
||||
|
||||
public class BlockUtils
|
||||
{
|
||||
public static Block getBlockFromItem (Item item)
|
||||
{
|
||||
public class BlockUtils {
|
||||
|
||||
public static Block getBlockFromItem(Item item) {
|
||||
return Block.getBlockFromItem(item);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static Block getBlockFromItemStack (ItemStack itemStack)
|
||||
{
|
||||
public static Block getBlockFromItemStack(ItemStack itemStack) {
|
||||
return getBlockFromItem(itemStack.getItem());
|
||||
}
|
||||
|
||||
public static String getUniqueName (Block block)
|
||||
{
|
||||
public static String getUniqueName(Block block) {
|
||||
return GameData.getBlockRegistry().getNameForObject(block);
|
||||
}
|
||||
|
||||
public static Block getBlockFromUniqueName (String uniqueName)
|
||||
{
|
||||
public static Block getBlockFromUniqueName(String uniqueName) {
|
||||
return GameData.getBlockRegistry().getObject(uniqueName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user