mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
Update for final MCP 7.26a mappings
This commit is contained in:
1 parent
2f5d798753
commit
da023a7669
8 files changed
+16
-16
No files matched your search
@@ -79,7 +79,7 @@ public abstract class InventoryBlock extends BlockContainer
|
||||
|
||||
if (stack.hasTagCompound())
|
||||
{
|
||||
entityitem.func_92014_d().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());
|
||||
entityitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float offset = 0.05F;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FancyEntityItem extends EntityItem
|
||||
public FancyEntityItem(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
|
||||
{
|
||||
this(par1World, par2, par4, par6);
|
||||
this.func_92013_a(par8ItemStack);
|
||||
this.func_92058_a(par8ItemStack);
|
||||
this.lifespan = (par8ItemStack.getItem() == null ? 6000 : par8ItemStack.getItem().getEntityLifespan(par8ItemStack, par1World));
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class FancyItemRender extends Render
|
||||
public void doRenderItem(EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9)
|
||||
{
|
||||
this.random.setSeed(187L);
|
||||
ItemStack var10 = par1EntityItem.func_92014_d();
|
||||
ItemStack var10 = par1EntityItem.getEntityItem();
|
||||
|
||||
if (var10.getItem() != null)
|
||||
{
|
||||
@@ -212,7 +212,7 @@ public class FancyItemRender extends Render
|
||||
|
||||
float var16 = 0.0625F;
|
||||
var17 = 0.021875F;
|
||||
ItemStack var18 = par1EntityItem.func_92014_d();
|
||||
ItemStack var18 = par1EntityItem.getEntityItem();
|
||||
int var19 = var18.stackSize;
|
||||
byte var24 = getMiniItemCountForItemStack(var18);
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ public class AbilityHelper
|
||||
|
||||
if (entity instanceof EntityLiving)
|
||||
{
|
||||
EnchantmentThorns.func_92044_a(player, (EntityLiving)entity, random);
|
||||
EnchantmentThorns.func_92096_a(player, (EntityLiving)entity, random);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public class CastingTableSpecialRenderer extends TileEntitySpecialRenderer
|
||||
void renderItem(CastingTableLogic logic, ItemStack stack)
|
||||
{
|
||||
FancyEntityItem entityitem = new FancyEntityItem(logic.worldObj, 0.0D, 0.0D, 0.0D, stack);
|
||||
entityitem.func_92014_d().stackSize = 1;
|
||||
entityitem.getEntityItem().stackSize = 1;
|
||||
entityitem.hoverStart = 0.0F;
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef(1F, 1.478F, 0.55F);
|
||||
|
||||
@@ -291,7 +291,7 @@ public class SuperCustomToolRenderer implements IItemRenderer
|
||||
void renderEntityItem (ItemStack stack, RenderBlocks renderer, EntityItem entity)
|
||||
{
|
||||
this.random.setSeed(187L);
|
||||
ItemStack var10 = entity.func_92014_d();
|
||||
ItemStack var10 = entity.getEntityItem();
|
||||
ToolCore tool = (ToolCore) var10.getItem();
|
||||
|
||||
if (var10.getItem() != null)
|
||||
@@ -398,7 +398,7 @@ public class SuperCustomToolRenderer implements IItemRenderer
|
||||
|
||||
float var16 = 0.0625F;
|
||||
var17 = 0.021875F;
|
||||
ItemStack stack = par1EntityItem.func_92014_d();
|
||||
ItemStack stack = par1EntityItem.getEntityItem();
|
||||
ToolCore tool = (ToolCore) stack.getItem();
|
||||
int var19 = stack.stackSize;
|
||||
byte var24 = getMiniBlockCountForItemStack(stack);
|
||||
|
||||
@@ -264,7 +264,7 @@ public class CartEntity extends Entity
|
||||
|
||||
if (var2.hasTagCompound())
|
||||
{
|
||||
var7.func_92014_d().setTagCompound((NBTTagCompound)var2.getTagCompound().copy());
|
||||
var7.getEntityItem().setTagCompound((NBTTagCompound)var2.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float var8 = 0.05F;
|
||||
@@ -326,9 +326,9 @@ public class CartEntity extends Entity
|
||||
{
|
||||
if (var1.getAllowNether())
|
||||
{
|
||||
if (this.ridingEntity == null && this.field_82153_h++ >= var2)
|
||||
if (this.ridingEntity == null && this.timeInPortal++ >= var2)
|
||||
{
|
||||
this.field_82153_h = var2;
|
||||
this.timeInPortal = var2;
|
||||
this.timeUntilPortal = this.getPortalCooldown();
|
||||
byte var3;
|
||||
|
||||
@@ -349,14 +349,14 @@ public class CartEntity extends Entity
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.field_82153_h > 0)
|
||||
if (this.timeInPortal > 0)
|
||||
{
|
||||
this.field_82153_h -= 4;
|
||||
this.timeInPortal -= 4;
|
||||
}
|
||||
|
||||
if (this.field_82153_h < 0)
|
||||
if (this.timeInPortal < 0)
|
||||
{
|
||||
this.field_82153_h = 0;
|
||||
this.timeInPortal = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ public class FrypanLogic extends EquipLogic
|
||||
}
|
||||
if (item instanceof ItemTool && ((ItemTool) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemSword && ((ItemSword) item).func_77825_f().equals("WOOD"))
|
||||
if (item instanceof ItemSword && ((ItemSword) item).getToolMaterialName().equals("WOOD"))
|
||||
return 200;
|
||||
if (item instanceof ItemHoe && ((ItemHoe) item).func_77842_f().equals("WOOD"))
|
||||
return 200;
|
||||
|
||||
Reference in new issue
Block a user