Formatting pass.
This commit is contained in:
parent
1e9f3dadd3
commit
25108a5838
13 changed files with 90 additions and 72 deletions
|
@ -86,7 +86,7 @@ public class BindableHelper
|
|||
* Deprecated.
|
||||
*
|
||||
* Now handled automatically with
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}}
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}
|
||||
*
|
||||
* @param stack
|
||||
* - The ItemStack to bind
|
||||
|
@ -105,7 +105,7 @@ public class BindableHelper
|
|||
* Deprecated.
|
||||
*
|
||||
* Now handled automatically with
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}}
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}
|
||||
*
|
||||
* @param stack
|
||||
* - The ItemStack to bind
|
||||
|
@ -145,7 +145,7 @@ public class BindableHelper
|
|||
* Deprecated.
|
||||
*
|
||||
* Now handled automatically with
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}}
|
||||
* {@link WayofTime.bloodmagic.util.handler.EventHandler#onInteract(PlayerInteractEvent.RightClickItem)}
|
||||
*
|
||||
* @param stack
|
||||
* - ItemStack to check
|
||||
|
|
|
@ -18,7 +18,7 @@ public class ItemHelper
|
|||
{
|
||||
/**
|
||||
* Attempts to fill an altar with the contained LP
|
||||
*
|
||||
*
|
||||
* @param altar
|
||||
* - The altar in question
|
||||
* @param itemStack
|
||||
|
@ -27,7 +27,7 @@ public class ItemHelper
|
|||
* - The world
|
||||
* @param altarPos
|
||||
* - The position of the altar
|
||||
*
|
||||
*
|
||||
* @return Whether or not the altar was filled (or at least attempted)
|
||||
*/
|
||||
public static boolean tryAndFillAltar(IBloodAltar altar, ItemStack itemStack, World world, BlockPos altarPos)
|
||||
|
@ -55,14 +55,14 @@ public class ItemHelper
|
|||
|
||||
/**
|
||||
* Adds the given LP into the {@link IItemLPContainer}'s storage
|
||||
*
|
||||
*
|
||||
* @param stack
|
||||
* - The item in question
|
||||
* @param toAdd
|
||||
* - How much LP should be added to the item
|
||||
* @param maxCapacity
|
||||
* - The item's maximum holding capacity
|
||||
*
|
||||
*
|
||||
* @return Whether or not LP was added to the item
|
||||
*/
|
||||
public static boolean addLPToItem(ItemStack stack, int toAdd, int maxCapacity)
|
||||
|
|
|
@ -71,10 +71,10 @@ public class PlayerHelper
|
|||
|
||||
/**
|
||||
* Checks whether or not the given player is an "actual" player
|
||||
*
|
||||
*
|
||||
* @param player
|
||||
* - The player in question
|
||||
*
|
||||
*
|
||||
* @return If the player is fake or not
|
||||
*/
|
||||
public static boolean isFakePlayer(EntityPlayer player)
|
||||
|
|
|
@ -44,11 +44,12 @@ public class PlayerSacrificeHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Sacrifices a player's health while the player is under the influence of incense
|
||||
*
|
||||
* Sacrifices a player's health while the player is under the influence of
|
||||
* incense
|
||||
*
|
||||
* @param player
|
||||
* - The player sacrificing
|
||||
*
|
||||
*
|
||||
* @return Whether or not the health sacrificing succeeded
|
||||
*/
|
||||
public static boolean sacrificePlayerHealth(EntityPlayer player)
|
||||
|
@ -90,16 +91,17 @@ public class PlayerSacrificeHelper
|
|||
|
||||
/**
|
||||
* Finds the nearest {@link IBloodAltar} and attempts to fill it
|
||||
*
|
||||
*
|
||||
* @param world
|
||||
* - The world
|
||||
* @param sacrificingEntity
|
||||
* - The entity having the sacrifice done on (can be {@link EntityPlayer} for self-sacrifice)
|
||||
* - The entity having the sacrifice done on (can be
|
||||
* {@link EntityPlayer} for self-sacrifice)
|
||||
* @param amount
|
||||
* - The amount of which the altar should be filled
|
||||
* @param isSacrifice
|
||||
* - Whether this is a Sacrifice or a Self-Sacrifice
|
||||
*
|
||||
*
|
||||
* @return Whether the altar is found and (attempted) filled
|
||||
*/
|
||||
public static boolean findAndFillAltar(World world, EntityLivingBase sacrificingEntity, int amount, boolean isSacrifice)
|
||||
|
@ -117,13 +119,15 @@ public class PlayerSacrificeHelper
|
|||
|
||||
/**
|
||||
* Gets the nearest {@link IBloodAltar}
|
||||
*
|
||||
*
|
||||
* @param world
|
||||
* - The world
|
||||
* @param blockPos
|
||||
* - The position of where the check should be in (in a 2 block radius from this)
|
||||
*
|
||||
* @return The nearest altar, if no altar is found, then this will return null
|
||||
* - The position of where the check should be in (in a 2 block
|
||||
* radius from this)
|
||||
*
|
||||
* @return The nearest altar, if no altar is found, then this will return
|
||||
* null
|
||||
*/
|
||||
public static IBloodAltar getAltar(World world, BlockPos blockPos)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue