Added some rudimentary path blocks for the tranquility altar - textures pending.
This commit is contained in:
parent
f4d0b18521
commit
cc1e11f09f
17 changed files with 216 additions and 23 deletions
|
@ -6,20 +6,20 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||
|
||||
public class IncenseHelper
|
||||
{
|
||||
public static float getCurrentIncense(EntityPlayer player)
|
||||
public static double getCurrentIncense(EntityPlayer player)
|
||||
{
|
||||
NBTTagCompound data = player.getEntityData();
|
||||
if (data.hasKey(Constants.NBT.CURRENT_INCENSE))
|
||||
{
|
||||
return data.getFloat(Constants.NBT.CURRENT_INCENSE);
|
||||
return data.getDouble(Constants.NBT.CURRENT_INCENSE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void setCurrentIncense(EntityPlayer player, float amount)
|
||||
public static void setCurrentIncense(EntityPlayer player, double amount)
|
||||
{
|
||||
NBTTagCompound data = player.getEntityData();
|
||||
data.setFloat(Constants.NBT.CURRENT_INCENSE, amount);
|
||||
data.setDouble(Constants.NBT.CURRENT_INCENSE, amount);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue