parent
d240daf958
commit
aeb7b0af12
4 changed files with 31 additions and 4 deletions
|
@ -5,6 +5,7 @@ import java.util.Locale;
|
|||
import java.util.Set;
|
||||
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.api.util.helper.NBTHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockPortal;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
|
@ -172,6 +173,12 @@ public class Utils
|
|||
return itemHandler;
|
||||
}
|
||||
|
||||
public static ItemStack setUnbreakable(ItemStack stack) {
|
||||
NBTHelper.checkNBT(stack);
|
||||
stack.getTagCompound().setBoolean("Unbreakable", true);
|
||||
return stack;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a default block for each type of {@link EnumAltarComponent}
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue