[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-29 12:54:15 -08:00
1 parent a711c0495e
commit 21f9083d10
83 files changed
+1855 -2448

No files matched your search

+7 -10
View File
@@ -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);
}