Skip to content

Instantly share code, notes, and snippets.

@Jezza
Created May 11, 2014 03:47
Show Gist options
  • Select an option

  • Save Jezza/ae265c6f8fa8ca0a7edf to your computer and use it in GitHub Desktop.

Select an option

Save Jezza/ae265c6f8fa8ca0a7edf to your computer and use it in GitHub Desktop.
if (UtilPower.movePower(powerManager, manager, 5, EnumSimulationType.FORCED_SIMULATE)) {
// Get rid of the coord params in the constructor.
// I would also make it a method to set the target.
EntityPhoton entity = new EntityPhoton(worldObj).setTarget(entry.getKey()).setMaxDistance(10).setPowerCarried(5));
// You can move them to here
entity.setPosition(xCoord, yCoord, zCoord);
worldObj.spawnEntityInWorld(new EntityPhoton(worldObj, xCoord, yCoord, zCoord, entry.getKey())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment