Way being picky.
This commit is contained in:
parent
e3644f2d2b
commit
7e30b02d69
303 changed files with 622 additions and 311 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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?
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package thaumcraft.api.nodes;
|
||||
|
||||
public enum NodeModifier {
|
||||
public enum NodeModifier
|
||||
{
|
||||
BRIGHT, PALE, FADING
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package thaumcraft.api.nodes;
|
||||
|
||||
public enum NodeType {
|
||||
public enum NodeType
|
||||
{
|
||||
NORMAL, UNSTABLE, DARK, TAINTED, HUNGRY, PURE
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>();
|
||||
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -13,7 +13,8 @@ import java.util.List;
|
|||
*
|
||||
* @author Azanor
|
||||
*/
|
||||
public class WandCap {
|
||||
public class WandCap
|
||||
{
|
||||
private String tag;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue