format all the things!

This commit is contained in:
jaredlll08 committed 2015-08-31 19:15:35 +02:00
1 parent 54ec75fd3d
commit b36c6dade6
377 files changed
+6833 -6772

No files matched your search

@@ -11,8 +11,8 @@ import stanhebben.zenscript.annotations.ZenOperator;
/**
* Represents a recipe ingredient. An ingredient can be an item, an ore
* dictionary entry, an item stack, an ore dictionary entry multiplied with
* an amount, or other kinds of ingredients as offered by the API.
* dictionary entry, an item stack, an ore dictionary entry multiplied with an
* amount, or other kinds of ingredients as offered by the API.
*
* There is no guarantee that every mod will respect the conditions or
* transformations, or that every mod will support every kind of ingredient.
@@ -22,14 +22,14 @@ import stanhebben.zenscript.annotations.ZenOperator;
@ZenClass("minetweaker.item.IIngredient")
public interface IIngredient {
/**
* Gets the mark of the ingredient. Ingredients can be marked so they can
* be used in crafting functions.
* Gets the mark of the ingredient. Ingredients can be marked so they can be
* used in crafting functions.
*
* @return ingredient mark
*/
@ZenGetter("mark")
public String getMark();
/**
* Gets the amount.
*
@@ -40,7 +40,7 @@ public interface IIngredient {
*/
@ZenGetter("amount")
public int getAmount();
/**
* Gets all possible items for this ingredient.
*
@@ -51,18 +51,18 @@ public interface IIngredient {
*/
@ZenGetter("items")
public List<IItemStack> getItems();
/**
* Gets all possible liquids for this ingredient.
*
* If there is no liquid list (for example, it is the &lt;*&ft; wildcard item)
* null should be returned.
* If there is no liquid list (for example, it is the &lt;*&ft; wildcard
* item) null should be returned.
*
* @return the liquids for this ingredient, or null
*/
@ZenGetter("liquids")
public List<ILiquidStack> getLiquids();
/**
* Returns a new ingredient with the given stack size.
*
@@ -72,7 +72,7 @@ public interface IIngredient {
@ZenOperator(OperatorType.MUL)
@ZenMethod
public IIngredient amount(int amount);
/**
* Combines multiple ingredients into a single one. Note that ore dictionary
* entries are preferred to or statements.
@@ -83,7 +83,7 @@ public interface IIngredient {
@ZenOperator(OperatorType.OR)
@ZenMethod
public IIngredient or(IIngredient ingredient);
/**
* Returns a new ingredient with the given transform added to it.
*
@@ -92,7 +92,7 @@ public interface IIngredient {
*/
@ZenMethod
public IIngredient transform(IItemTransformer transformer);
/**
* Returns a new ingredient with the given condition added to it.
*
@@ -101,7 +101,7 @@ public interface IIngredient {
*/
@ZenMethod
public IIngredient only(IItemCondition condition);
/**
* Returns a new ingredient marked with the given name.
*
@@ -110,26 +110,26 @@ public interface IIngredient {
*/
@ZenMethod
public IIngredient marked(String mark);
/**
* Checks if this ingredient matches the given item. For liquids, will
* match the item if it is a valid container.
* Checks if this ingredient matches the given item. For liquids, will match
* the item if it is a valid container.
*
* @param item item to check
* @return true if the item matches
*/
@ZenMethod
public boolean matches(IItemStack item);
/**
* Checks if this ingredient matches the given liquid.
*
* @param liquid
* @return
* @return
*/
@ZenMethod
public boolean matches(ILiquidStack liquid);
/**
* Check if this ingredient contains all possible values for the given
* ingredient.
@@ -139,7 +139,7 @@ public interface IIngredient {
*/
@ZenOperator(OperatorType.CONTAINS)
public boolean contains(IIngredient ingredient);
/**
* Applies transformations after crafting, if any, to the given item.
*
@@ -149,24 +149,25 @@ public interface IIngredient {
*/
@ZenMethod
public IItemStack applyTransform(IItemStack item, IPlayer byPlayer);
/**
* Checks if this ingredient has (or could have) any transformatiosns.
*
* @return true if there are (or could be) any transformations false otherwise.
* @return true if there are (or could be) any transformations false
* otherwise.
*/
@ZenGetter("hasTransformations")
public boolean hasTransformers();
/**
* Gets the internal item backing this ingredient.
*
* The value is implementation-dependent and should only be handled by
* the internal code. Don't use this value - instead, use the version-specific
* The value is implementation-dependent and should only be handled by the
* internal code. Don't use this value - instead, use the version-specific
* helper methods.
*
* @return internal item
*/
public Object getInternal();
}