Small stuff
This commit is contained in:
parent
0f3c0196cd
commit
8d2ab7aa7a
|
@ -4,5 +4,5 @@ import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
public interface ILPGauge
|
public interface ILPGauge
|
||||||
{
|
{
|
||||||
public boolean canSeeLPBar(ItemStack itemStack);
|
boolean canSeeLPBar(ItemStack itemStack);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package WayofTime.alchemicalWizardry.client.renderer;
|
package WayofTime.alchemicalWizardry.client.renderer;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import WayofTime.alchemicalWizardry.ModBlocks;
|
import WayofTime.alchemicalWizardry.ModBlocks;
|
||||||
|
@ -21,6 +23,7 @@ import net.minecraftforge.client.event.RenderWorldLastEvent;
|
||||||
* Created in Scala by Alex-Hawks
|
* Created in Scala by Alex-Hawks
|
||||||
* Translated and implemented by Arcaratus
|
* Translated and implemented by Arcaratus
|
||||||
*/
|
*/
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public class RitualDivinerRender
|
public class RitualDivinerRender
|
||||||
{
|
{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
|
|
@ -71,8 +71,17 @@ public class CommandSN extends CommandBase
|
||||||
}
|
}
|
||||||
else if ("get".equalsIgnoreCase(astring[1]))
|
else if ("get".equalsIgnoreCase(astring[1]))
|
||||||
{
|
{
|
||||||
int amount = SoulNetworkHandler.getCurrentEssence(owner);
|
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
|
||||||
func_152373_a(icommandsender, this, "commands.soulnetwork.get.success", amount, owner);
|
func_152373_a(icommandsender, this, "commands.soulnetwork.get.success", currentEssence, owner);
|
||||||
|
}
|
||||||
|
else if ("fillMax".equalsIgnoreCase(astring[1]))
|
||||||
|
{
|
||||||
|
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
|
||||||
|
int orbTier = SoulNetworkHandler.getCurrentMaxOrb(owner);
|
||||||
|
int maxForOrb = SoulNetworkHandler.getMaximumForOrbTier(orbTier);
|
||||||
|
int fillAmount = maxForOrb - currentEssence;
|
||||||
|
SoulNetworkHandler.addCurrentEssenceToMaximum(owner, fillAmount, fillAmount);
|
||||||
|
func_152373_a(icommandsender, this, "commands.soulnetwork.fillMax.success", owner);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,6 +6,7 @@ import WayofTime.alchemicalWizardry.api.items.interfaces.ISigil;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.item.EntityItem;
|
import net.minecraft.entity.item.EntityItem;
|
||||||
|
import net.minecraft.entity.item.EntityXPOrb;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
@ -153,6 +154,7 @@ public class SigilOfMagnetism extends EnergyItems implements ArmourUpgrade, IHol
|
||||||
float posY = (float) (par3Entity.posY - par3Entity.getEyeHeight());
|
float posY = (float) (par3Entity.posY - par3Entity.getEyeHeight());
|
||||||
float posZ = Math.round(par3Entity.posZ);
|
float posZ = Math.round(par3Entity.posZ);
|
||||||
List<EntityItem> entities = par3EntityPlayer.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
List<EntityItem> entities = par3EntityPlayer.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
||||||
|
List<EntityXPOrb> xpOrbs = par3EntityPlayer.worldObj.getEntitiesWithinAABB(EntityXPOrb.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
||||||
|
|
||||||
for (EntityItem entity : entities)
|
for (EntityItem entity : entities)
|
||||||
{
|
{
|
||||||
|
@ -161,9 +163,15 @@ public class SigilOfMagnetism extends EnergyItems implements ArmourUpgrade, IHol
|
||||||
entity.onCollideWithPlayer(par3EntityPlayer);
|
entity.onCollideWithPlayer(par3EntityPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
for (EntityXPOrb xpOrb : xpOrbs)
|
||||||
|
{
|
||||||
|
if (xpOrb != null && !par2World.isRemote)
|
||||||
|
{
|
||||||
|
xpOrb.onCollideWithPlayer(par3EntityPlayer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -175,6 +183,7 @@ public class SigilOfMagnetism extends EnergyItems implements ArmourUpgrade, IHol
|
||||||
float posY = (float) (player.posY - player.getEyeHeight());
|
float posY = (float) (player.posY - player.getEyeHeight());
|
||||||
float posZ = Math.round(player.posZ);
|
float posZ = Math.round(player.posZ);
|
||||||
List<EntityItem> entities = player.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
List<EntityItem> entities = player.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
||||||
|
List<EntityXPOrb> xpOrbs = player.worldObj.getEntitiesWithinAABB(EntityXPOrb.class, AxisAlignedBB.getBoundingBox(posX - 0.5f, posY - 0.5f, posZ - 0.5f, posX + 0.5f, posY + 0.5f, posZ + 0.5f).expand(range, verticalRange, range));
|
||||||
|
|
||||||
for (EntityItem entity : entities)
|
for (EntityItem entity : entities)
|
||||||
{
|
{
|
||||||
|
@ -183,6 +192,14 @@ public class SigilOfMagnetism extends EnergyItems implements ArmourUpgrade, IHol
|
||||||
entity.onCollideWithPlayer(player);
|
entity.onCollideWithPlayer(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (EntityXPOrb xpOrb : xpOrbs)
|
||||||
|
{
|
||||||
|
if (xpOrb != null && !world.isRemote)
|
||||||
|
{
|
||||||
|
xpOrb.onCollideWithPlayer(player);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
package WayofTime.alchemicalWizardry.common.tileEntity;
|
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
|
||||||
|
|
||||||
public class TEImperfectRitualStone extends TileEntity
|
|
||||||
{
|
|
||||||
public TEImperfectRitualStone()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -296,6 +296,7 @@ commands.soulnetwork.get.success=There is %dLP in %s's Soul Network!
|
||||||
commands.soulnetwork.noPlayer=There is no player specified
|
commands.soulnetwork.noPlayer=There is no player specified
|
||||||
commands.soulnetwork.noCommand=There is no command specified
|
commands.soulnetwork.noCommand=There is no command specified
|
||||||
commands.soulnetwork.notACommand=That is not a valid command
|
commands.soulnetwork.notACommand=That is not a valid command
|
||||||
|
commands.soulnetwork.fillMax.success=Successfully filled %s's Soul Network to their orb max!
|
||||||
|
|
||||||
#Tooltips
|
#Tooltips
|
||||||
tooltip.activationcrystal.creativeonly=Creative Only - activates any ritual
|
tooltip.activationcrystal.creativeonly=Creative Only - activates any ritual
|
||||||
|
|
Loading…
Reference in a new issue