diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-03-21 17:34:07 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-03-21 17:34:07 +0300 |
| commit | 7305ba719930ea3fbf8aa987aeec48b33cdbd82e (patch) | |
| tree | 2307517925d965cd9228c8649013b07639987846 /ihl/recipes/RecipeOutputItemStack.java | |
| parent | 5cb4c6e24033cf337812390d99a6817d24d21eab (diff) | |
Oregen
Diffstat (limited to 'ihl/recipes/RecipeOutputItemStack.java')
| -rw-r--r-- | ihl/recipes/RecipeOutputItemStack.java | 63 |
1 files changed, 25 insertions, 38 deletions
diff --git a/ihl/recipes/RecipeOutputItemStack.java b/ihl/recipes/RecipeOutputItemStack.java index c765b1d..480d1f8 100644 --- a/ihl/recipes/RecipeOutputItemStack.java +++ b/ihl/recipes/RecipeOutputItemStack.java @@ -3,63 +3,50 @@ package ihl.recipes; import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
-public class RecipeOutputItemStack
-{
+public class RecipeOutputItemStack {
public final ItemStack itemStack;
public final float quantity;
- public RecipeOutputItemStack(ItemStack itemStack1, float quantity1)
- {
- itemStack=itemStack1;
- quantity=quantity1;
- itemStack.stackSize=1;
+
+ public RecipeOutputItemStack(ItemStack itemStack1, float quantity1) {
+ itemStack = itemStack1;
+ quantity = quantity1;
+ itemStack.stackSize = 1;
}
-
- public RecipeOutputItemStack(ItemStack itemStack1)
- {
+
+ public RecipeOutputItemStack(ItemStack itemStack1) {
this(itemStack1, itemStack1.stackSize);
}
-
- public boolean matches(RecipeOutputItemStack is1)
- {
- if(is1==null||(itemStack.getItem()!=is1.itemStack.getItem()))
- {
+
+ public boolean matches(RecipeOutputItemStack is1) {
+ if (is1 == null || (itemStack.getItem() != is1.itemStack.getItem())) {
return false;
- }
- else if(is1.itemStack.getItemDamage()!=OreDictionary.WILDCARD_VALUE &&
- itemStack.getItemDamage()!=is1.itemStack.getItemDamage())
- {
+ } else if (is1.itemStack.getItemDamage() != OreDictionary.WILDCARD_VALUE
+ && itemStack.getItemDamage() != is1.itemStack.getItemDamage()) {
return false;
}
return true;
}
- public RecipeOutputItemStack copy(int mulipier)
- {
- return new RecipeOutputItemStack(itemStack, quantity*mulipier);
+ public RecipeOutputItemStack copy(int mulipier) {
+ return new RecipeOutputItemStack(itemStack, quantity * mulipier);
}
-
- public RecipeOutputItemStack copy()
- {
+
+ public RecipeOutputItemStack copy() {
return new RecipeOutputItemStack(itemStack, quantity);
}
-
+
@Override
- public String toString()
- {
- return this.itemStack.getUnlocalizedName()+":"+this.quantity;
+ public String toString() {
+ return this.itemStack.getUnlocalizedName() + ":" + this.quantity;
}
- public boolean matches(ItemStack is1)
- {
- if(is1==null||(itemStack.getItem()!=is1.getItem()))
- {
+ public boolean matches(ItemStack is1) {
+ if (is1 == null || (itemStack.getItem() != is1.getItem())) {
return false;
- }
- else if(is1.getItemDamage()!=OreDictionary.WILDCARD_VALUE &&
- itemStack.getItemDamage()!=is1.getItemDamage())
- {
+ } else if (is1.getItemDamage() != OreDictionary.WILDCARD_VALUE
+ && itemStack.getItemDamage() != is1.getItemDamage()) {
return false;
}
- return false;
+ return true;
}
}
|
