Merge pull request #376 from Zerokyuuni/master

Tinker's Outdated BG Fix maybe?
This commit is contained in:
mDiyo committed 2013-12-07 19:06:25 -08:00
commit 74ef6e8c3d
14 files changed
+258 -6

No files matched your search

+7
View File
@@ -230,9 +230,16 @@ public class Arrow extends ToolCore
}
}
//1.6.4
@Override
public boolean isOffhandHandDual(ItemStack off)
{
return false;
}
//1.6.2
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
}
+24
View File
@@ -301,6 +301,7 @@ public class Battleaxe extends HarvestTool
return super.onBlockStartBreak(stack, x, y, z, player);
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -318,4 +319,27 @@ public class Battleaxe extends HarvestTool
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+18
View File
@@ -226,6 +226,7 @@ public class Chisel extends ToolCore
return new String[] { "utility" };
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -237,4 +238,21 @@ public class Chisel extends ToolCore
{
return false;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
}
+24
View File
@@ -181,6 +181,7 @@ public class Cleaver extends Weapon
}
}
//1.6.4 start
@Override
public boolean isOffhandHandDual(ItemStack off)
{
@@ -192,4 +193,27 @@ public class Cleaver extends Weapon
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return PHConstruct.isCleaverTwoHanded;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+24
View File
@@ -294,6 +294,7 @@ public class Excavator extends HarvestTool
return super.getStrVsBlock(stack, block, meta);
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -311,4 +312,27 @@ public class Excavator extends HarvestTool
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+20 -1
View File
@@ -422,7 +422,8 @@ public class Hammer extends HarvestTool
return new String[] { "weapon", "harvest", "melee", "bludgeoning" };
}
@Override
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
try
@@ -450,4 +451,22 @@ public class Hammer extends HarvestTool
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+7
View File
@@ -106,9 +106,16 @@ public class Hatchet extends HarvestTool
return "axe";
}
//1.6.4
@Override
public boolean isOffhandHandDual(ItemStack off)
{
return PHConstruct.isHatchetWeapon;
}
//1.6.2
@Override
public boolean isOffhandHandDualWeapon() {
return PHConstruct.isHatchetWeapon;
}
}
+24
View File
@@ -401,6 +401,7 @@ public class LumberAxe extends HarvestTool
return 1;
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -418,4 +419,27 @@ public class LumberAxe extends HarvestTool
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+24
View File
@@ -145,6 +145,7 @@ public class Mattock extends DualHarvestTool
return true;
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -162,4 +163,27 @@ public class Mattock extends DualHarvestTool
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+7
View File
@@ -70,9 +70,16 @@ public class Pickaxe extends HarvestTool
return "pickaxe";
}
//1.6.4
@Override
public boolean isOffhandHandDual(ItemStack off)
{
return false;
}
//1.6.2
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
}
+24
View File
@@ -218,6 +218,7 @@ public class Scythe extends Weapon
return true;
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -235,4 +236,27 @@ public class Scythe extends Weapon
{
return true;
}
//1.6.2 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
//1.6.2 end
}
+23
View File
@@ -191,6 +191,7 @@ public class Shortbow extends BowBase
//return TConstructRegistry.getMaterial(type).ability();
}
//1.6.4 start
@Override
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
@@ -208,4 +209,26 @@ public class Shortbow extends BowBase
{
return true;
}
//1.6.4 end
//1.6.2 start
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
}
+8 -1
View File
@@ -91,11 +91,18 @@ public class Shovel extends HarvestTool
return "shovel";
}
@Override
//1.6.4
@Override
public boolean isOffhandHandDual(ItemStack off)
{
return false;
}
//1.6.2
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
/*@Override
public Icon getIcon (ItemStack stack, int renderPass)
+24 -4
View File
@@ -1020,24 +1020,44 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, ICu
}
/* Battlegear support, IBattlegearWeapon */
@Override
// 1.6.4 start
public boolean allowOffhand(ItemStack mainhand, ItemStack offhand)
{
return true;
}
@Override
public boolean isOffhandHandDual(ItemStack off)
{
return true;
}
@Override
public boolean sheatheOnBack(ItemStack item)
{
return false;
}
//1.6.4 end
//1.6.2 start
public boolean willAllowOffhandWeapon()
{
return true;
}
public boolean willAllowShield()
{
return true;
}
public boolean isOffhandHandDualWeapon()
{
return true;
}
public boolean sheatheOnBack()
{
return false;
}
//1.6.2 end
@Override
public boolean offhandAttackEntity (OffhandAttackEvent event, ItemStack mainhandItem, ItemStack offhandItem)