Created
May 11, 2014 03:47
-
-
Save Jezza/ae265c6f8fa8ca0a7edf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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