[ci skip] spotlessApply with the new settings

This commit is contained in:
Raven Szewczyk committed 2023-01-29 11:36:41 +00:00
1 parent 6b208b98bc
commit a309488cdf
214 files changed
+9283 -9265

No files matched your search

@@ -1,31 +1,28 @@
package minetweaker.api.item;
import java.util.List;
import minetweaker.api.block.IBlock;
import minetweaker.api.data.IData;
import minetweaker.api.liquid.ILiquidStack;
import minetweaker.api.oredict.IOreDictEntry;
import stanhebben.zenscript.annotations.*;
import java.util.List;
/**
* Contains an item stack. An item stack consists of an item definition, a meta
* or damage value and NBT data.
* Contains an item stack. An item stack consists of an item definition, a meta or damage value and NBT data.
* <p>
* Item stacks can be retrieved using its name (or ID, in 1.6.4) with the
* bracket syntax. When using the bracket syntax, by default, the item stack
* will match any size when used as ingredient. Item stacks can be multiplied
* with an integer to create a stack of different size.
* Item stacks can be retrieved using its name (or ID, in 1.6.4) with the bracket syntax. When using the bracket syntax,
* by default, the item stack will match any size when used as ingredient. Item stacks can be multiplied with an integer
* to create a stack of different size.
* <p>
* Item stacks are immutable. You can, however, easily create modified stacks
* using the helper methods. Adding conditions and transformations will turn the
* item stack into an ingredients.
* Item stacks are immutable. You can, however, easily create modified stacks using the helper methods. Adding
* conditions and transformations will turn the item stack into an ingredients.
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.item.IItemStack")
public interface IItemStack extends IIngredient {
/**
* Gets the item definition.
*
@@ -33,7 +30,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenGetter("definition")
IItemDefinition getDefinition();
/**
* Gets the unlocalized item name.
*
@@ -41,26 +38,25 @@ public interface IItemStack extends IIngredient {
*/
@ZenGetter("name")
String getName();
/**
* Gets the display name. By default, it is the localized item name, but
* could also be the display name from NBT data, or another item-specific
* name.
* Gets the display name. By default, it is the localized item name, but could also be the display name from NBT
* data, or another item-specific name.
*
* @return item display name
*/
@ZenGetter("displayName")
String getDisplayName();
/**
* Sets the display name. Only works if the name is translatable. Does not
* override names set by NBT data or using item-specific logic.
* Sets the display name. Only works if the name is translatable. Does not override names set by NBT data or using
* item-specific logic.
*
* @param name item display name
*/
@ZenSetter("displayName")
void setDisplayName(String name);
/**
* Gets the max stack size for an item
*
@@ -68,7 +64,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenGetter("maxStackSize")
int getMaxStackSize();
/**
* Sets the ItemStack max stack size.
*
@@ -76,13 +72,13 @@ public interface IItemStack extends IIngredient {
*/
@ZenSetter("maxStackSize")
void setMaxStackSize(int size);
/**
* Gets the block hardness
*/
@ZenGetter("hardness")
float getBlockHardness();
/**
* Sets the block hardness
*
@@ -90,7 +86,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenSetter("hardness")
void setBlockHardness(float hardness);
/**
* Gets the item damage. Returns 0 if the item cannot be damaged.
*
@@ -98,7 +94,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenGetter("damage")
int getDamage();
/**
* Gets the maximum item damage. Returns 0 if the item cannot be damaged.
*
@@ -106,7 +102,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenGetter("maxDamage")
int getMaxDamage();
/**
* Sets the max Itemstack damage
*
@@ -114,27 +110,25 @@ public interface IItemStack extends IIngredient {
*/
@ZenSetter("maxDamage")
void setMaxDamage(int damage);
/**
* Gets the item tag. (NBT data) The resulting data is immutable and can
* only be changed with updateTag. Returns empty data if there is no data.
* Never returns null.
* Gets the item tag. (NBT data) The resulting data is immutable and can only be changed with updateTag. Returns
* empty data if there is no data. Never returns null.
*
* @return item tag
*/
@ZenGetter("tag")
IData getTag();
/**
* Gets the liquid contained in this item, if any. If this item stack is not
* an item container, it returns null. Only returns the amount of liquid in
* a single item and doesn't into account stack size.
* Gets the liquid contained in this item, if any. If this item stack is not an item container, it returns null.
* Only returns the amount of liquid in a single item and doesn't into account stack size.
*
* @return liquid data
*/
@ZenGetter("liquid")
ILiquidStack getLiquid();
/**
* Creates a new item stack with a different stack size.
*
@@ -144,10 +138,9 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack amount(int amount);
/**
* Creates a weighted item stack with the given percentage chance. Does the
* same as item.weight(p * 0.01).
* Creates a weighted item stack with the given percentage chance. Does the same as item.weight(p * 0.01).
*
* @param p probability, with percent
*
@@ -155,7 +148,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenOperator(OperatorType.MOD)
WeightedItemStack percent(float p);
/**
* Creates a weighted item stack with the given weight.
*
@@ -165,16 +158,16 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
WeightedItemStack weight(float p);
/**
* Creates an item stack with the same item and stack size, but accepting
* any damage value. Only useful for items used as ingredients.
* Creates an item stack with the same item and stack size, but accepting any damage value. Only useful for items
* used as ingredients.
*
* @return item stack with wildcard damage
*/
@ZenMethod
IIngredient anyDamage();
/**
* Creates an item stack with the specified damage.
*
@@ -184,7 +177,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack withDamage(int damage);
/**
* Creates an item stack with the specified stack size.
*
@@ -195,16 +188,16 @@ public interface IItemStack extends IIngredient {
@ZenOperator(OperatorType.MUL)
@ZenMethod
IItemStack withAmount(int amount);
/**
* Creates an item stack with wildcard stack size.
*
* @return new, modified item stack
*/
@ZenMethod
IItemStack anyAmount();
/**
* Creates an item stack with the given nbt tag. Ignores existing tags.
*
@@ -214,7 +207,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack withTag(IData tag);
/**
* Create an item stack with an empty nbt tag. Removes previous tag if any.
*
@@ -222,7 +215,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack withEmptyTag();
/**
* Creates an item stack without the given nbt tag.
*
@@ -232,7 +225,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack removeTag(String tag);
/**
* Creates an item stack with updated nbt tag. Updates existing tags.
*
@@ -242,7 +235,7 @@ public interface IItemStack extends IIngredient {
*/
@ZenMethod
IItemStack updateTag(IData tagUpdate);
/**
* Converts this item stack into a block.
*
@@ -250,10 +243,9 @@ public interface IItemStack extends IIngredient {
*/
@ZenCaster
IBlock asBlock();
/**
* Retrieves all the ores referring to this item. Includes wildcard ore
* entries.
* Retrieves all the ores referring to this item. Includes wildcard ore entries.
*
* @return ore entries containing this item stack
*/