mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
getting super close
This commit is contained in:
1 parent
625d319b0c
commit
f936434c71
17 files changed
+32
-29
No files matched your search
@@ -120,7 +120,7 @@ public class EquipBlock extends InventoryBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void breakBlock (World par1World, int x, int y, int z, int par5, int meta)
|
||||
public void func_149749_a (World par1World, int x, int y, int z, Block par5, int meta)
|
||||
{
|
||||
TileEntity te = par1World.func_147438_o(x, y, z);
|
||||
|
||||
@@ -165,7 +165,7 @@ public class EquipBlock extends InventoryBlock
|
||||
}
|
||||
}
|
||||
|
||||
super.breakBlock(par1World, x, y, z, par5, meta);
|
||||
super.func_149749_a(par1World, x, y, z, par5, meta);
|
||||
}
|
||||
|
||||
public int getLightValue (IBlockAccess world, int x, int y, int z)
|
||||
|
||||
@@ -263,7 +263,7 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeBlockByPlayer (World world, EntityPlayer player, int x, int y, int z)
|
||||
public boolean removedByPlayer (World world, EntityPlayer player, int x, int y, int z)
|
||||
{
|
||||
player.addExhaustion(0.025F);
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
|
||||
@@ -112,7 +112,7 @@ public class DryingRackLogic extends InventoryLogic
|
||||
@Override
|
||||
public void onDataPacket (NetworkManager net, S35PacketUpdateTileEntity packet)
|
||||
{
|
||||
readCustomNBT(packet.data);
|
||||
readCustomNBT(packet.func_148857_g());
|
||||
field_145850_b.func_147479_m(field_145851_c, field_145848_d, field_145849_e);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public class BarricadeBlock extends MantleBlock
|
||||
|
||||
public void func_147465_dBoundsBasedOnState (IBlockAccess par1IBlockAccess, int x, int y, int z)
|
||||
{
|
||||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
func_149676_a(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public void harvestBlock (World world, EntityPlayer player, int x, int y, int z, int meta)
|
||||
@@ -73,11 +73,11 @@ public class BarricadeBlock extends MantleBlock
|
||||
if (meta % 4 > 0)
|
||||
{
|
||||
world.func_147465_d(x, y, z, this, meta - 1, 3);
|
||||
dropBlockAsItem_do(world, x, y, z, new ItemStack(this));
|
||||
func_149642_a(world, x, y, z, new ItemStack(this));
|
||||
}
|
||||
else
|
||||
{
|
||||
dropBlockAsItem_do(world, x, y, z, new ItemStack(this));
|
||||
func_149642_a(world, x, y, z, new ItemStack(this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ public class BarricadeBlock extends MantleBlock
|
||||
world.func_147465_d(x, y, z, Blocks.air, 0, 0);
|
||||
else
|
||||
world.setBlockMetadataWithNotify(x, y, z, (int) (meta - power), 3);
|
||||
onBlockDestroyedByExplosion(world, x, y, z, explosion);
|
||||
func_149723_a(world, x, y, z, explosion);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -230,7 +230,7 @@ public class Landmine extends MantleBlock
|
||||
/**
|
||||
* ejects contained items into the world, and notifies neighbours of an update, as appropriate
|
||||
*/
|
||||
public void breakBlock (World par1World, int par2, int par3, int par4, int par5, int par6)
|
||||
public void breakBlock (World par1World, int par2, int par3, int par4, Block par5, int par6)
|
||||
{
|
||||
if (par6 > 0)
|
||||
{
|
||||
@@ -238,7 +238,7 @@ public class Landmine extends MantleBlock
|
||||
par1World.func_147459_d(par2, par3 - 1, par4, this);
|
||||
}
|
||||
|
||||
super.breakBlock(par1World, par2, par3, par4, par5, par6);
|
||||
super.func_149749_a(par1World, par2, par3, par4, par5, par6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import net.minecraft.potion.Potion;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.*;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import net.minecraftforge.fluids.*;
|
||||
import net.minecraftforge.fluids.FluidContainerRegistry.*;
|
||||
import net.minecraftforge.oredict.*;
|
||||
@@ -429,7 +430,7 @@ public class TContent implements IFuelHandler
|
||||
TRepo.stainedGlassClearPane = new GlassPaneStained();
|
||||
|
||||
//Rail
|
||||
TRepo.woodenRail = new WoodRail().func_149672_a(Block.field_149766_f).func_149647_a(TConstructRegistry.blockTab).setUnlocalizedName("rail.wood");
|
||||
TRepo.woodenRail = new WoodRail().func_149672_a(Block.field_149766_f).func_149647_a(TConstructRegistry.blockTab).func_149663_c("rail.wood");
|
||||
|
||||
}
|
||||
|
||||
@@ -834,7 +835,7 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
HashMap<String, Achievement> achievements = TAchievements.achievements;
|
||||
|
||||
achievements.put("tconstruct.beginner", new Achievement("" + 2741, "tconstruct.beginner", 0, 0, TRepo.manualBook, null).setIndependent());
|
||||
achievements.put("tconstruct.beginner", new Achievement("" + 2741, "tconstruct.beginner", 0, 0, TRepo.manualBook, null));//.setIndependent());
|
||||
achievements.put("tconstruct.pattern", new Achievement("" + 2742, "tconstruct.pattern", 2, 1, TRepo.blankPattern, achievements.get("tconstruct.beginner")));
|
||||
achievements.put("tconstruct.tinkerer", new Achievement("" + 2743, "tconstruct.tinkerer", 2, 2, new ItemStack(TRepo.titleIcon, 1, 4096), achievements.get("tconstruct.pattern")));
|
||||
achievements.put("tconstruct.preparedFight", new Achievement("" + 2744, "tconstruct.preparedFight", 1, 3, new ItemStack(TRepo.titleIcon, 1, 4097), achievements.get("tconstruct.tinkerer")));
|
||||
|
||||
@@ -150,7 +150,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
++this.ticksInAir;
|
||||
Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ);
|
||||
Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||
MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, false, true);
|
||||
MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, false, true, false);
|
||||
vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ);
|
||||
vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ import net.minecraft.world.World;
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
|
||||
import cpw.mods.fml.common.network.ByteBufUtils;
|
||||
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
|
||||
|
||||
public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
|
||||
@@ -341,7 +342,7 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
|
||||
tags.setShort("xTile", (short) xTile);
|
||||
tags.setShort("yTile", (short) yTile);
|
||||
tags.setShort("zTile", (short) zTile);
|
||||
tags.setByte("inTile", (byte) inTile);
|
||||
tags.setString("inTile", (String) inTile.func_149739_a());
|
||||
tags.setByte("shake", (byte) arrowShake);
|
||||
tags.setByte("onGround", (byte) (onGround ? 1 : 0));
|
||||
tags.setBoolean("Retrieval", doNotRetrieve);
|
||||
@@ -355,7 +356,8 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
|
||||
xTile = tags.getShort("xTile");
|
||||
yTile = tags.getShort("yTile");
|
||||
zTile = tags.getShort("zTile");
|
||||
inTile = tags.getByte("inTile") & 0xff;
|
||||
//TODO fix this\/
|
||||
//inTile = tags.getString("inTile");
|
||||
arrowShake = tags.getByte("shake") & 0xff;
|
||||
onGround = tags.getByte("onGround") == 1;
|
||||
doNotRetrieve = tags.getBoolean("Retrieval");
|
||||
@@ -423,7 +425,7 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
|
||||
public void writeSpawnData (ByteBuf data)
|
||||
{
|
||||
NBTTagCompound tags = returnStack.getTagCompound().getCompoundTag("InfiTool");
|
||||
data.writeShort(returnStack.itemID);
|
||||
ByteBufUtils.writeItemStack(data, returnStack);
|
||||
data.writeFloat(rotationYaw);
|
||||
data.writeInt(tags.getInteger("RenderHandle"));
|
||||
data.writeInt(tags.getInteger("RenderHead"));
|
||||
@@ -464,7 +466,7 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData
|
||||
@Override
|
||||
public void readSpawnData (ByteBuf data)
|
||||
{
|
||||
returnStack = new ItemStack(data.readShort(), 1, 0);
|
||||
returnStack = ByteBufUtils.readItemStack(data);
|
||||
rotationYaw = data.readFloat();
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
NBTTagCompound toolTag = new NBTTagCompound();
|
||||
|
||||
@@ -23,9 +23,9 @@ public class ArmorBasic extends ItemArmor
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String type)
|
||||
{
|
||||
return "tinker:textures/armor/" + textureName + "_" + layer + ".png";
|
||||
return "tinker:textures/armor/" + textureName + "_" + type + ".png";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class ArmorStandard extends ArmorCore
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String layer)
|
||||
{
|
||||
return "tinker:textures/armor/wood_" + layer + ".png";
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ExoArmor extends ArmorCore
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String layer)
|
||||
{
|
||||
return "tinker:textures/armor/" + textureName + "_" + layer + ".png";
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class TArmorBase extends ItemArmor
|
||||
*/
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
|
||||
public String getArmorTexture (ItemStack stack, Entity entity, int slot, String layer)
|
||||
{
|
||||
return "/mods/tinker/textures/armor/wood_1.png";
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ public class Battleaxe extends HarvestTool
|
||||
localMeta = world.getBlockMetadata(x, yPos, z);
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
if (block.removeBlockByPlayer(world, player, x, yPos, z))
|
||||
if (block.removedByPlayer(world, player, x, yPos, z))
|
||||
{
|
||||
block.func_149664_b(world, x, yPos, z, localMeta);
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class Excavator extends HarvestTool
|
||||
{
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
if (block.removeBlockByPlayer(world, player, xPos, yPos, zPos))
|
||||
if (block.removedByPlayer(world, player, xPos, yPos, zPos))
|
||||
{
|
||||
block.func_149664_b(world, xPos, yPos, zPos, localMeta);
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ public class Hammer extends HarvestTool
|
||||
{
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
if (localBlock.removeBlockByPlayer(world, player, xPos, yPos, zPos))
|
||||
if (localBlock.removedByPlayer(world, player, xPos, yPos, zPos))
|
||||
{
|
||||
localBlock.func_149664_b(world, xPos, yPos, zPos, localMeta);
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ public class LumberAxe extends HarvestTool
|
||||
}*/
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
if (block.removeBlockByPlayer(world, player, xPos, yPos, zPos))
|
||||
if (block.removedByPlayer(world, player, xPos, yPos, zPos))
|
||||
{
|
||||
block.func_149664_b(world, xPos, yPos, zPos, meta);
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ public class AbilityHelper
|
||||
|
||||
if (entity instanceof EntityLivingBase)
|
||||
{
|
||||
EnchantmentThorns.func_92096_a(player, (EntityLivingBase) entity, random);
|
||||
DamageSource.causeThornsDamage(entity);//(((EntityLivingBase)player, (EntityLivingBase) entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -504,7 +504,7 @@ public class AbilityHelper
|
||||
}
|
||||
else
|
||||
{
|
||||
Block block = Blocks.tilledField;
|
||||
Block block = Blocks.farmland;
|
||||
world.playSoundEffect((double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), block.field_149762_H.field_150501_a,
|
||||
(block.field_149762_H.func_150497_c() + 1.0F) / 2.0F, block.field_149762_H.func_150494_d() * 0.8F);
|
||||
|
||||
@@ -632,6 +632,6 @@ public class AbilityHelper
|
||||
d3 = ((EntityPlayerMP) player).theItemInWorldManager.getBlockReachDistance();
|
||||
}
|
||||
Vec3 vec31 = vec3.addVector((double) f7 * d3, (double) f6 * d3, (double) f8 * d3);
|
||||
return world.rayTraceBlocks_do_do(vec3, vec31, par3, !par3);
|
||||
return world.func_147447_a(vec3, vec31, par3, !par3,par3);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user