mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
The return of achievements
- Re-added achievements - Organised all imports (seemed all over the place) - Formatted all code (seemed very combined, used the TinkerStyle)
This commit is contained in:
1 parent
ae2d8d6e4d
commit
80efde613a
419 files changed
+2406
-4144
No files matched your search
@@ -3,14 +3,13 @@ package tconstruct.library.modifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import tconstruct.library.armor.ArmorCore;
|
||||
import tconstruct.library.armor.ArmorPart;
|
||||
import tconstruct.library.armor.*;
|
||||
|
||||
public class ActiveArmorMod
|
||||
{
|
||||
/* Ticks for every armor piece on client and server */
|
||||
public void onArmorTick (World world, EntityPlayer player, ItemStack itemStack, ArmorCore armor, ArmorPart type)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,9 +5,9 @@ public interface IModifyable
|
||||
/**
|
||||
* @return The base tag to modify. Ex: InfiTool
|
||||
*/
|
||||
public String getBaseTagName();
|
||||
|
||||
public String getModifyType();
|
||||
|
||||
public String[] getTraits();
|
||||
public String getBaseTagName ();
|
||||
|
||||
public String getModifyType ();
|
||||
|
||||
public String[] getTraits ();
|
||||
}
|
||||
@@ -1,11 +1,6 @@
|
||||
package tconstruct.library.modifier;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.UUID;
|
||||
|
||||
import java.util.*;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@@ -15,7 +10,7 @@ public abstract class ItemModifier
|
||||
public final List stacks;
|
||||
public final int effectIndex;
|
||||
public static Random random = new Random();
|
||||
|
||||
|
||||
/** Default constructor
|
||||
*
|
||||
* @param recipe Items to compare against when checking the modifier
|
||||
@@ -78,12 +73,12 @@ public abstract class ItemModifier
|
||||
return list.isEmpty();
|
||||
}
|
||||
|
||||
protected String getTagName(ItemStack stack)
|
||||
protected String getTagName (ItemStack stack)
|
||||
{
|
||||
return ((IModifyable)stack.getItem()).getBaseTagName();
|
||||
return ((IModifyable) stack.getItem()).getBaseTagName();
|
||||
}
|
||||
|
||||
protected NBTTagCompound getModifierTag(ItemStack stack)
|
||||
|
||||
protected NBTTagCompound getModifierTag (ItemStack stack)
|
||||
{
|
||||
return stack.getTagCompound().getCompoundTag(getTagName(stack));
|
||||
}
|
||||
@@ -245,7 +240,7 @@ public abstract class ItemModifier
|
||||
return false;
|
||||
return ItemStack.areItemStackTagsEqual(stack1, stack2);
|
||||
}
|
||||
|
||||
|
||||
public static NBTTagCompound getAttributeTag (String attributeType, String modifierName, double amount, boolean flat, UUID uuid)
|
||||
{
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
|
||||
Reference in new issue
Block a user