Formatted the code - Release state for Blood Magic 1.8.9-2.0.0-1

This commit is contained in:
WayofTime 2016-01-02 17:56:37 -05:00
parent d1ff8c6d4f
commit 71421b7d88
38 changed files with 223 additions and 208 deletions

View file

@ -39,7 +39,7 @@ public class ChatUtil
* .
*
* @param s
* The string to wrap.
* The string to wrap.
*
* @return An {@link IChatComponent} containing the string.
*/
@ -66,9 +66,9 @@ public class ChatUtil
* args.
*
* @param s
* The string to format
* The string to format
* @param args
* The args to apply to the format
* The args to apply to the format
*/
public static IChatComponent wrapFormatted(String s, Object... args)
{
@ -79,9 +79,9 @@ public class ChatUtil
* Simply sends the passed lines to the player in a chat message.
*
* @param player
* The player to send the chat to
* The player to send the chat to
* @param lines
* The lines to send
* The lines to send
*/
public static void sendChat(EntityPlayer player, String... lines)
{
@ -102,9 +102,9 @@ public class ChatUtil
* Sends all passed chat components to the player.
*
* @param player
* The player to send the chat lines to.
* The player to send the chat lines to.
* @param lines
* The {@link IChatComponent chat components} to send.yes
* The {@link IChatComponent chat components} to send.yes
*/
public static void sendChat(EntityPlayer player, IChatComponent... lines)
{
@ -129,7 +129,7 @@ public class ChatUtil
* Strings automatically.
*
* @param lines
* The chat lines to send
* The chat lines to send
*
* @see #wrap(String)
*/
@ -207,9 +207,9 @@ public class ChatUtil
* Credit to RWTema for the idea
*
* @param player
* The player to send the chat message to
* The player to send the chat message to
* @param lines
* The chat lines to send.
* The chat lines to send.
*/
public static void sendNoSpam(EntityPlayerMP player, IChatComponent... lines)
{

View file

@ -29,13 +29,14 @@ public class Utils
/**
* @see #insertItemToTile(TileInventory, EntityPlayer, int)
*
*
* @param tile
* - The {@link TileInventory} to input the item to
* - The {@link TileInventory} to input the item to
* @param player
* - The player to take the item from.
*
* @return {@code true} if the ItemStack is inserted, {@code false} otherwise
* - The player to take the item from.
*
* @return {@code true} if the ItemStack is inserted, {@code false}
* otherwise
*/
public static boolean insertItemToTile(TileInventory tile, EntityPlayer player)
{
@ -45,17 +46,18 @@ public class Utils
/**
* Used for inserting an ItemStack with a stacksize of 1 to a tile's
* inventory at slot 0
*
*
* EG: Block Altar
*
*
* @param tile
* - The {@link TileInventory} to input the item to
* - The {@link TileInventory} to input the item to
* @param player
* - The player to take the item from.
* - The player to take the item from.
* @param slot
* - The slot to attempt to insert to
*
* @return {@code true} if the ItemStack is inserted, {@code false} otherwise
* - The slot to attempt to insert to
*
* @return {@code true} if the ItemStack is inserted, {@code false}
* otherwise
*/
public static boolean insertItemToTile(TileInventory tile, EntityPlayer player, int slot)
{
@ -82,10 +84,10 @@ public class Utils
/**
* Gets a default block for each type of {@link EnumAltarComponent}
*
*
* @param component
* - The Component to provide a block for.
*
* - The Component to provide a block for.
*
* @return The default Block for the EnumAltarComponent
*/
public static Block getBlockForComponent(EnumAltarComponent component)

View file

@ -96,7 +96,8 @@ public class EventHandler
}
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent event) {
public void onConfigChanged(ConfigChangedEvent event)
{
if (event.modID.equals(Constants.Mod.MODID))
ConfigHandler.syncConfig();
}

View file

@ -41,11 +41,11 @@ public class InventoryRenderHelper
* Registers a Model for the given Item and meta.
*
* @param item
* - Item to register Model for
* - Item to register Model for
* @param meta
* - Meta of Item
* - Meta of Item
* @param name
* - Name of the model JSON
* - Name of the model JSON
*/
public void itemRender(Item item, int meta, String name)
{
@ -59,9 +59,9 @@ public class InventoryRenderHelper
* Shorthand of {@code itemRender(Item, int, String)}
*
* @param item
* - Item to register Model for
* - Item to register Model for
* @param meta
* - Meta of Item
* - Meta of Item
*/
public void itemRender(Item item, int meta)
{
@ -77,7 +77,7 @@ public class InventoryRenderHelper
* Shorthand of {@code itemRender(Item, int)}
*
* @param item
* - Item to register Model for
* - Item to register Model for
*/
public void itemRender(Item item)
{
@ -89,7 +89,7 @@ public class InventoryRenderHelper
* item
*
* @param item
* - Item to register Model for
* - Item to register Model for
*/
public void itemRenderAll(Item item)
{
@ -137,7 +137,7 @@ public class InventoryRenderHelper
/**
* @param block
* - Block to get Item of
* - Block to get Item of
*
* @return - The ItemBlock that corresponds to the Block.
*/