Changed formatting to have bracing on a new line

This commit is contained in:
WayofTime 2015-12-30 15:34:40 -05:00
parent e5eddd6c45
commit e48eedb874
189 changed files with 6092 additions and 4041 deletions

View file

@ -4,12 +4,15 @@ import WayofTime.bloodmagic.api.registry.OrbRegistry;
/**
* Base object for all Blood Orbs. Makes Orb creation quite a bit easier.
*
* Just create a new BloodOrb instance then register it with {@link OrbRegistry#registerOrb(BloodOrb)}
* This will allow the use of just one item ID for all orbs. If an addon dev needs more control over the intricacies
* of their orb (custom right clicking, renderers, etc), they can just create their own item as normal.
*
* Just create a new BloodOrb instance then register it with
* {@link OrbRegistry#registerOrb(BloodOrb)} This will allow the use of just one
* item ID for all orbs. If an addon dev needs more control over the intricacies
* of their orb (custom right clicking, renderers, etc), they can just create
* their own item as normal.
*/
public class BloodOrb {
public class BloodOrb
{
private String name;
private int tier;
@ -17,52 +20,58 @@ public class BloodOrb {
private String owner = "BloodMagic";
/**
* A base object for BloodOrbs. A bit cleaner than the
* old way through EnergyItems.
*
* @param name - A name for the Orb. Gets put into an unlocalized name.
* @param tier - The tier of the Orb.
* @param capacity - The max amount of LP the Orb can store.
* A base object for BloodOrbs. A bit cleaner than the old way through
* EnergyItems.
*
* @param name
* - A name for the Orb. Gets put into an unlocalized name.
* @param tier
* - The tier of the Orb.
* @param capacity
* - The max amount of LP the Orb can store.
*/
public BloodOrb(String name, int tier, int capacity) {
public BloodOrb(String name, int tier, int capacity)
{
this.name = name;
this.tier = tier;
this.capacity = capacity;
}
public String getName() {
public String getName()
{
return name;
}
public int getTier() {
public int getTier()
{
return tier;
}
public int getCapacity() {
public int getCapacity()
{
return capacity;
}
public String getOwner() {
public String getOwner()
{
return owner;
}
/**
* For setting the MODID of the mod that creates the Orb. Not required, but preferred.
*
* For setting the MODID of the mod that creates the Orb. Not required, but
* preferred.
*
* @return - The BloodOrb object for further use.
*/
public BloodOrb setOwner(String owner) {
public BloodOrb setOwner(String owner)
{
this.owner = owner;
return this;
}
@Override
public String toString() {
return "BloodOrb{" +
"name='" + name + '\'' +
", tier=" + tier +
", capacity=" + capacity +
", owner=" + owner +
'}';
public String toString()
{
return "BloodOrb{" + "name='" + name + '\'' + ", tier=" + tier + ", capacity=" + capacity + ", owner=" + owner + '}';
}
}

View file

@ -1,6 +1,7 @@
package WayofTime.bloodmagic.api.orb;
public interface IBloodOrb {
public interface IBloodOrb
{
BloodOrb getOrb(int meta);