Merge pull request #532 from the-vindex/1.8-Rewrite-comment-fixes

Comment fixes
This commit is contained in:
WayofTime 2016-01-01 07:44:26 -05:00
commit eb18618eab
11 changed files with 46 additions and 44 deletions

View file

@ -312,8 +312,8 @@ public class BloodAltar
if (world.isRemote) if (world.isRemote)
return; return;
internalCounter++; // Used instead of the world time for checks that do // Used instead of the world time for checks that do not happen every tick
// not happen every tick internalCounter++;
if (lockdownDuration > 0) if (lockdownDuration > 0)
lockdownDuration--; lockdownDuration--;

View file

@ -93,8 +93,9 @@ public class AlchemyCircleRenderer
GlStateManager.translate(x, y, z); GlStateManager.translate(x, y, z);
EnumFacing sideHit = EnumFacing.UP; // Specify which face this "circle" // Specify which face this "circle" is located on
// is located on EnumFacing sideHit = EnumFacing.UP;
GlStateManager.translate(sideHit.getFrontOffsetX() * offsetFromFace, sideHit.getFrontOffsetY() * offsetFromFace, sideHit.getFrontOffsetZ() * offsetFromFace); GlStateManager.translate(sideHit.getFrontOffsetX() * offsetFromFace, sideHit.getFrontOffsetY() * offsetFromFace, sideHit.getFrontOffsetZ() * offsetFromFace);
switch (sideHit) switch (sideHit)
@ -151,4 +152,4 @@ public class AlchemyCircleRenderer
GlStateManager.popMatrix(); GlStateManager.popMatrix();
} }
} }

View file

@ -35,8 +35,8 @@ public class SoulNetworkEvent extends Event
{ {
public final EntityPlayer player; public final EntityPlayer player;
public boolean shouldDamage; // If true, will damage regardless of if // If true, will damage regardless of if the network had enough inside it
// the network had enough inside it public boolean shouldDamage;
public PlayerDrainNetworkEvent(EntityPlayer player, String ownerNetwork, int drainAmount) public PlayerDrainNetworkEvent(EntityPlayer player, String ownerNetwork, int drainAmount)
{ {
@ -51,8 +51,11 @@ public class SoulNetworkEvent extends Event
{ {
public final ItemStack itemStack; public final ItemStack itemStack;
public float damageAmount; // Amount of damage that would incur if the /**
// network could not drain properly * Amount of damage that would incur if the network could not drain
* properly
*/
public float damageAmount;
/** /**
* Set result to deny the action i.e. damage/drain anyways. Cancelling * Set result to deny the action i.e. damage/drain anyways. Cancelling

View file

@ -12,8 +12,11 @@ import com.google.common.collect.Multimap;
public abstract class LivingArmourUpgrade public abstract class LivingArmourUpgrade
{ {
protected int level = 0; // Upgrade level 0 is the first upgrade. Upgrade /**
// goes from 0 to getMaxTier() - 1. * Upgrade level 0 is the first upgrade. Upgrade goes from 0 to getMaxTier()
* - 1.
*/
protected int level = 0;
/** /**
* The LivingArmourUpgrade must have a constructor that has a single integer * The LivingArmourUpgrade must have a constructor that has a single integer
@ -36,7 +39,6 @@ public abstract class LivingArmourUpgrade
public abstract String getUniqueIdentifier(); public abstract String getUniqueIdentifier();
/** /**
*
* @return * @return
*/ */
public abstract int getMaxTier(); public abstract int getMaxTier();
@ -49,7 +51,7 @@ public abstract class LivingArmourUpgrade
public Multimap<String, AttributeModifier> getAttributeModifiers() public Multimap<String, AttributeModifier> getAttributeModifiers()
{ {
return HashMultimap.<String, AttributeModifier> create(); return HashMultimap.<String, AttributeModifier>create();
} }
public abstract void writeToNBT(NBTTagCompound tag); public abstract void writeToNBT(NBTTagCompound tag);

View file

@ -89,11 +89,7 @@ public class AltarRecipeRegistry
return false; return false;
return tierCheck.ordinal() >= minTier.ordinal() && this.input.isItemEqual(comparedStack);// && return tierCheck.ordinal() >= minTier.ordinal() && this.input.isItemEqual(comparedStack);// &&
// (this.useTag // (this.useTag this.areRequiredTagsEqual(comparedStack) : true);
// ?
// this.areRequiredTagsEqual(comparedStack)
// :
// true);
} }
} }
} }

View file

@ -15,8 +15,10 @@ public class RitualRegistry
public static final Map<Ritual, Boolean> enabledRituals = new HashMap<Ritual, Boolean>(); public static final Map<Ritual, Boolean> enabledRituals = new HashMap<Ritual, Boolean>();
private static final BiMap<String, Ritual> registry = HashBiMap.create(); private static final BiMap<String, Ritual> registry = HashBiMap.create();
// Ordered list for actions that depend on the order that the rituals were /**
// registered in * Ordered list for actions that depend on the order that the rituals were
* registered in
*/
private static final ArrayList<String> orderedIdList = new ArrayList<String>(); private static final ArrayList<String> orderedIdList = new ArrayList<String>();
/** /**

View file

@ -187,8 +187,8 @@ public class BindingAlchemyCircleRenderer extends AlchemyCircleRenderer
GlStateManager.translate(x, y, z); GlStateManager.translate(x, y, z);
EnumFacing sideHit = EnumFacing.UP; // Specify which face this "circle" // Specify which face this "circle" is located on
// is located on EnumFacing sideHit = EnumFacing.UP;
GlStateManager.translate(sideHit.getFrontOffsetX() * offsetFromFace, sideHit.getFrontOffsetY() * offsetFromFace, sideHit.getFrontOffsetZ() * offsetFromFace); GlStateManager.translate(sideHit.getFrontOffsetX() * offsetFromFace, sideHit.getFrontOffsetY() * offsetFromFace, sideHit.getFrontOffsetZ() * offsetFromFace);
switch (sideHit) switch (sideHit)

View file

@ -21,8 +21,8 @@ public class AltarRecipeMaker
for (Map.Entry<ItemStack, AltarRecipeRegistry.AltarRecipe> itemStackAltarRecipeEntry : altarMap.entrySet()) for (Map.Entry<ItemStack, AltarRecipeRegistry.AltarRecipe> itemStackAltarRecipeEntry : altarMap.entrySet())
{ {
if (itemStackAltarRecipeEntry.getValue().getOutput() != null) if (itemStackAltarRecipeEntry.getValue().getOutput() != null)
{ // Make sure output is not null. If it is, the recipe is for a {
// filling orb, and we don't want that. // Make sure output is not null. If it is, the recipe is for a filling orb, and we don't want that.
ItemStack input = itemStackAltarRecipeEntry.getKey(); ItemStack input = itemStackAltarRecipeEntry.getKey();
ItemStack output = itemStackAltarRecipeEntry.getValue().getOutput(); ItemStack output = itemStackAltarRecipeEntry.getValue().getOutput();
int requiredTier = itemStackAltarRecipeEntry.getValue().getMinTier().toInt(); int requiredTier = itemStackAltarRecipeEntry.getValue().getMinTier().toInt();

View file

@ -66,15 +66,13 @@ public class StorageBlockCraftingRecipeAssimilator
{ {
PackingRecipe recipePack = it.next(); PackingRecipe recipePack = it.next();
// check if the packing recipe accepts the unpacking recipe's // check if the packing recipe accepts the unpacking recipe's output
// output
boolean matched = false; boolean matched = false;
if (recipePack.possibleInputs != null) if (recipePack.possibleInputs != null)
{ // the recipe could be parsed, use its inputs directly since {
// that's faster // the recipe could be parsed, use its inputs directly since that's faster verify recipe size
// verify recipe size
if (recipePack.inputCount != unpacked.stackSize) if (recipePack.inputCount != unpacked.stackSize)
continue; continue;
@ -91,15 +89,13 @@ public class StorageBlockCraftingRecipeAssimilator
} }
} }
} else } else
{ // unknown IRecipe, check through the recipe conventionally {
// verify recipe size for 3x3 to skip anything smaller // unknown IRecipe, check through the recipe conventionally verify recipe size for 3x3 to skip anything smaller quickly
// quickly
if (unpacked.stackSize == 9 && recipePack.recipe.getRecipeSize() < 9) if (unpacked.stackSize == 9 && recipePack.recipe.getRecipeSize() < 9)
continue; continue;
// initialize inventory late, but only once per unpack // initialize inventory late, but only once per unpack recipe
// recipe
if (inventory == null) if (inventory == null)
{ {

View file

@ -19,12 +19,14 @@ import java.util.List;
public class ItemPackSelfSacrifice extends ItemArmor implements IAltarManipulator public class ItemPackSelfSacrifice extends ItemArmor implements IAltarManipulator
{ {
/** How much LP per half heart */
public final int CONVERSION = 100; // How much LP per half heart public final int CONVERSION = 100;
public final int CAPACITY = 10000; // Max LP storage /** Max LP storage */
public final int INTERVAL = 20; // How often the pack syphons public final int CAPACITY = 10000;
public final float HEALTHREQ = 0.5f; // How much health is required for the /** How often the pack syphons */
// pack to syphon (0 - 1) public final int INTERVAL = 20;
/** How much health is required for the pack to syphon (0 - 1) */
public final float HEALTHREQ = 0.5f;
public ItemPackSelfSacrifice() public ItemPackSelfSacrifice()
{ {

View file

@ -117,9 +117,9 @@ public class TileMasterRitualStone extends TileEntity implements IMasterRitualSt
network.syphon(ritual.getActivationCost()); network.syphon(ritual.getActivationCost());
ChatUtil.sendNoSpamUnloc(activator, "chat.BloodMagic.ritual.activate"); ChatUtil.sendNoSpamUnloc(activator, "chat.BloodMagic.ritual.activate");
this.active = true; this.active = true;
this.owner = crystalOwner; // Set the owner of the // Set the owner of the ritual to the crystal's owner
// ritual to the crystal's this.owner = crystalOwner;
// owner
this.currentRitual = ritual; this.currentRitual = ritual;
return true; return true;