Way being picky.

This commit is contained in:
Fenn 2014-01-17 21:43:13 +00:00
parent e3644f2d2b
commit 7e30b02d69
303 changed files with 622 additions and 311 deletions

View file

@ -10,7 +10,8 @@ import net.minecraft.item.ItemStack;
* goggles of revealing can apart from view nodes which is handled by IRevealer.
*/
public interface IGoggles {
public interface IGoggles
{
/*
* If this method returns true things like block essentia contents will be shown.
*/

View file

@ -5,5 +5,6 @@ package thaumcraft.api;
* Items, armor and tools with this interface can receive the Repair enchantment.
* Repairs 1 point of durability every 10 seconds (2 for repair II)
*/
public interface IRepairable {
public interface IRepairable
{
}

View file

@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
* Items, armor and tools with this interface can receive the Repair enchantment.
* Repairs 1 point of durability every 10 seconds (2 for repair II)
*/
public interface IRepairableExtended extends IRepairable {
public interface IRepairableExtended extends IRepairable
{
public boolean doRepair(ItemStack stack, EntityPlayer player, int enchantlevel);
}

View file

@ -6,6 +6,7 @@ package thaumcraft.api;
* The amount returned is the percentage by which the cost is discounted. There is a built-int max discount of 50%, but
* individual items really shouldn't have a discount more than 5%
*/
public interface IVisDiscounter {
public interface IVisDiscounter
{
int getVisDiscount();
}

View file

@ -12,7 +12,8 @@ import net.minecraft.item.ItemStack;
* I only give some examples and it will probably still
* require a bit of work for you to get hold of everything you need.
*/
public class ItemApi {
public class ItemApi
{
public static ItemStack getItem(String itemString, int meta)
{
ItemStack item = null;

View file

@ -25,7 +25,8 @@ import java.util.concurrent.ConcurrentHashMap;
* <p/>
* IMPORTANT: If you are adding your own aspects to items it is a good idea to do it AFTER Thaumcraft adds its aspects, otherwise odd things may happen.
*/
public class ThaumcraftApi {
public class ThaumcraftApi
{
//Materials
public static EnumToolMaterial toolMatThaumium = EnumHelper.addToolMaterial("THAUMIUM", 3, 400, 7F, 2, 22);
public static EnumToolMaterial toolMatElemental = EnumHelper.addToolMaterial("THAUMIUM_ELEMENTAL", 3, 1500, 10F, 3, 18);
@ -50,7 +51,8 @@ public class ThaumcraftApi {
public static ArrayList<IScanEventHandler> scanEventhandlers = new ArrayList<IScanEventHandler>();
public static ArrayList<EntityTags> scanEntities = new ArrayList<EntityTags>();
public static class EntityTags {
public static class EntityTags
{
public EntityTags(String entityName, NBTBase[] nbts, AspectList aspects)
{
this.entityName = entityName;

View file

@ -14,7 +14,8 @@ import thaumcraft.api.aspects.IEssentiaTransport;
import java.lang.reflect.Method;
import java.util.HashMap;
public class ThaumcraftApiHelper {
public class ThaumcraftApiHelper
{
public static AspectList cullTags(AspectList temp)
{
AspectList temp2 = new AspectList();

View file

@ -8,7 +8,8 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
public class Aspect {
public class Aspect
{
String tag;
Aspect[] components;
int color;

View file

@ -8,7 +8,8 @@ import thaumcraft.api.ThaumcraftApiHelper;
import java.io.Serializable;
import java.util.LinkedHashMap;
public class AspectList implements Serializable {
public class AspectList implements Serializable
{
public LinkedHashMap<Aspect,Integer> aspects = new LinkedHashMap<Aspect,Integer>(); //aspects associated with this object
/**

View file

@ -6,7 +6,8 @@ package thaumcraft.api.aspects;
* Used by blocks like the crucible and alembic to hold their aspects.
* Tiles extending this interface will have their aspects show up when viewed by goggles of revealing
*/
public interface IAspectContainer {
public interface IAspectContainer
{
public AspectList getAspects();
public void setAspects(AspectList aspects);

View file

@ -6,5 +6,6 @@ package thaumcraft.api.aspects;
* This interface is implemented by tile entites (or possibly anything else) like jars
* so that they can act as an essentia source for blocks like the infusion altar.
*/
public interface IAspectSource extends IAspectContainer {
public interface IAspectSource extends IAspectContainer
{
}

View file

@ -9,7 +9,8 @@ import net.minecraft.item.ItemStack;
* Useful for similar item containers that store their aspect information in nbt form so TC
* automatically picks up the aspects they contain
*/
public interface IEssentiaContainerItem {
public interface IEssentiaContainerItem
{
public AspectList getAspects(ItemStack itemstack);
public void setAspects(ItemStack itemstack, AspectList aspects);

View file

@ -7,7 +7,8 @@ import net.minecraftforge.common.ForgeDirection;
* This interface is used by tiles that use or transport vis.
* Only tiles that implement this interface will be able to connect to vis conduits or other thaumic devices
*/
public interface IEssentiaTransport {
public interface IEssentiaTransport
{
/**
* Is this tile able to connect to other vis users/sources on the specified side?
*

View file

@ -8,7 +8,8 @@ import thaumcraft.api.aspects.AspectList;
import java.util.ArrayList;
public class CrucibleRecipe {
public class CrucibleRecipe
{
public ItemStack recipeOutput;
public Object catalyst;
public AspectList aspects;

View file

@ -6,7 +6,8 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import thaumcraft.api.aspects.AspectList;
public interface IArcaneRecipe {
public interface IArcaneRecipe
{
/**
* Used to check if a recipe matches current crafting inventory
*

View file

@ -13,7 +13,8 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
public class InfusionEnchantmentRecipe {
public class InfusionEnchantmentRecipe
{
public AspectList aspects;
public String research;
public ItemStack[] components;

View file

@ -9,7 +9,8 @@ import thaumcraft.api.aspects.AspectList;
import java.util.ArrayList;
public class InfusionRecipe {
public class InfusionRecipe
{
public AspectList aspects;
public String research;
public ItemStack[] components;

View file

@ -13,7 +13,8 @@ import thaumcraft.api.aspects.AspectList;
import java.util.ArrayList;
import java.util.HashMap;
public class ShapedArcaneRecipe implements IArcaneRecipe {
public class ShapedArcaneRecipe implements IArcaneRecipe
{
//Added in for future ease of change, but hard coded for now.
private static final int MAX_CRAFT_GRID_WIDTH = 3;
private static final int MAX_CRAFT_GRID_HEIGHT = 3;

View file

@ -13,7 +13,8 @@ import thaumcraft.api.aspects.AspectList;
import java.util.ArrayList;
import java.util.Iterator;
public class ShapelessArcaneRecipe implements IArcaneRecipe {
public class ShapelessArcaneRecipe implements IArcaneRecipe
{
private ItemStack output = null;
private ArrayList input = new ArrayList();

View file

@ -2,7 +2,8 @@ package thaumcraft.api.nodes;
import thaumcraft.api.aspects.IAspectContainer;
public interface INode extends IAspectContainer {
public interface INode extends IAspectContainer
{
/**
* Unique identifier to distinguish nodes. Normal node id's are based on world id and coordinates
*

View file

@ -9,7 +9,8 @@ import net.minecraft.item.ItemStack;
* Equipped head slot items that extend this class will make nodes visible in world.
*/
public interface IRevealer {
public interface IRevealer
{
/*
* If this method returns true the nodes will be visible.
*/

View file

@ -1,5 +1,6 @@
package thaumcraft.api.nodes;
public enum NodeModifier {
public enum NodeModifier
{
BRIGHT, PALE, FADING
}

View file

@ -1,5 +1,6 @@
package thaumcraft.api.nodes;
public enum NodeType {
public enum NodeType
{
NORMAL, UNSTABLE, DARK, TAINTED, HUNGRY, PURE
}

View file

@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IScanEventHandler {
public interface IScanEventHandler
{
ScanResult scanPhenomena(ItemStack stack, World world, EntityPlayer player);
}

View file

@ -6,7 +6,8 @@ import net.minecraft.util.StatCollector;
import java.util.Collection;
import java.util.LinkedHashMap;
public class ResearchCategories {
public class ResearchCategories
{
//Research
public static LinkedHashMap<String,ResearchCategoryList> researchCategories = new LinkedHashMap<String,ResearchCategoryList>();

View file

@ -5,7 +5,8 @@ import net.minecraft.util.ResourceLocation;
import java.util.HashMap;
import java.util.Map;
public class ResearchCategoryList {
public class ResearchCategoryList
{
/**
* Is the smallest column used on the GUI.
*/

View file

@ -8,7 +8,8 @@ import net.minecraft.util.StatCollector;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class ResearchItem {
public class ResearchItem
{
/**
* A short string used as a key for this research. Must be unique
*/

View file

@ -12,8 +12,10 @@ import thaumcraft.api.crafting.InfusionRecipe;
import java.util.List;
public class ResearchPage {
public static enum PageType {
public class ResearchPage
{
public static enum PageType
{
TEXT,
TEXT_CONCEALED,
IMAGE,

View file

@ -2,7 +2,8 @@ package thaumcraft.api.research;
import net.minecraft.entity.Entity;
public class ScanResult {
public class ScanResult
{
public byte type = 0; //1=blocks,2=entities,3=phenomena
public int blockId;
public int blockMeta;

View file

@ -7,8 +7,10 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import thaumcraft.api.aspects.AspectList;
public interface IWandFocus {
public enum WandFocusAnimation {
public interface IWandFocus
{
public enum WandFocusAnimation
{
WAVE, CHARGE;
}

View file

@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
* Implemented by a class that you wish to be called whenever a wand with this rod performs its
* update tick.
*/
public interface IWandRodOnUpdate {
public interface IWandRodOnUpdate
{
void onUpdate(ItemStack itemstack, EntityPlayer player);
}

View file

@ -4,7 +4,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IWandTriggerManager {
public interface IWandTriggerManager
{
public boolean performTrigger(World world, ItemStack wand, EntityPlayer player,
int x, int y, int z, int side, int event);
}

View file

@ -10,7 +10,8 @@ import net.minecraft.world.World;
* Add this to a tile entity that you wish wands to interact with in some way.
*/
public interface IWandable {
public interface IWandable
{
public int onWandRightClick(World world, ItemStack wandstack, EntityPlayer player, int x, int y, int z, int side, int md);
public ItemStack onWandRightClick(World world, ItemStack wandstack, EntityPlayer player);

View file

@ -19,7 +19,8 @@ import java.text.DecimalFormat;
import java.util.List;
import java.util.Map;
public class ItemFocusBasic extends Item implements IWandFocus {
public class ItemFocusBasic extends Item implements IWandFocus
{
public ItemFocusBasic(int i)
{
super(i);

View file

@ -13,7 +13,8 @@ import java.util.List;
*
* @author Azanor
*/
public class WandCap {
public class WandCap
{
private String tag;
/**

View file

@ -11,7 +11,8 @@ import java.util.LinkedHashMap;
* This class is used to keep the material information for the various rods.
* It is also used to generate the wand recipes ingame.
*/
public class WandRod {
public class WandRod
{
private String tag;
/**

View file

@ -17,7 +17,8 @@ import java.util.List;
*
* @author azanor
*/
public class WandTriggerRegistry {
public class WandTriggerRegistry
{
/**
* Registers an action to perform when a casting wand right clicks on a specific block.
* A manager class needs to be created that implements IWandTriggerManager.