mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
under 1k finally
This commit is contained in:
1 parent
9b78521c73
commit
f3bcb13815
23 files changed
+80
-58
No files matched your search
@@ -23,10 +23,10 @@ public class CastingChannelBlock extends BlockContainer
|
||||
|
||||
public CastingChannelBlock()
|
||||
{
|
||||
super(Material.rock);
|
||||
super(Material.field_151576_e);
|
||||
this.func_149711_c(1F);
|
||||
this.func_149752_b(10);
|
||||
this.setStepSound(soundStoneFootstep);
|
||||
this.setStepSound(field_149769_e);
|
||||
func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class CraftingSlab extends InventorySlab
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.setStepSound(Block.soundWoodFootstep);
|
||||
this.setStepSound(Block.field_149766_f);
|
||||
}
|
||||
|
||||
/* Rendering */
|
||||
@@ -48,7 +48,7 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon (int side, int meta)
|
||||
public IIcon func_149691_a (int side, int meta)
|
||||
{
|
||||
return icons[(meta % 8) * 3 + getTextureIndex(side)];
|
||||
}
|
||||
@@ -67,9 +67,9 @@ public class CraftingSlab extends InventorySlab
|
||||
{
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
if (metadata == 5)
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY - 0.125,
|
||||
(double) z + this.maxZ);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.minX, (double) y + this.minY, (double) z + this.minZ, (double) x + this.maxX, (double) y + this.maxY, (double) z + this.maxZ);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F - 0.125,
|
||||
(double) z + this.field_149757_G);
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double) x + this.field_149759_B, (double) y + this.field_149760_C, (double) z + this.field_149754_D, (double) x + this.field_149755_E, (double) y + this.field_149756_F, (double) z + this.field_149757_G);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -124,7 +124,7 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubBlocks (Item b, CreativeTabs tab, List list)
|
||||
public void func_149666_a (Item b, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < 6; iter++)
|
||||
{
|
||||
@@ -133,14 +133,14 @@ public class CraftingSlab extends InventorySlab
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPlacedBy (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
public void func_149689_a (World world, int x, int y, int z, EntityLivingBase entityliving, ItemStack stack)
|
||||
{
|
||||
if (PHConstruct.freePatterns)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 4)
|
||||
{
|
||||
PatternChestLogic logic = (PatternChestLogic) world.getBlockTileEntity(x, y, z);
|
||||
PatternChestLogic logic = (PatternChestLogic) world.func_147438_o(x, y, z);
|
||||
for (int i = 1; i <= 13; i++)
|
||||
{
|
||||
logic.setInventorySlotContents(i - 1, new ItemStack(TRepo.woodPattern, 1, i));
|
||||
@@ -148,6 +148,28 @@ public class CraftingSlab extends InventorySlab
|
||||
logic.setInventorySlotContents(13, new ItemStack(TRepo.woodPattern, 1, 22));
|
||||
}
|
||||
}
|
||||
super.onBlockPlacedBy(world, x, y, z, entityliving, stack);
|
||||
super.func_149689_a(world, x, y, z, entityliving, stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity func_149915_a (World var1, int metadata)
|
||||
{
|
||||
switch (metadata % 8)
|
||||
{
|
||||
case 0:
|
||||
return new CraftingStationLogic();
|
||||
case 1:
|
||||
return new ToolStationLogic();
|
||||
case 2:
|
||||
return new PartBuilderLogic();
|
||||
case 3:
|
||||
return new StencilTableLogic();
|
||||
case 4:
|
||||
return new PatternChestLogic();
|
||||
case 5:
|
||||
return new ToolForgeLogic();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ public class CraftingStationBlock extends InventoryBlock
|
||||
super(material);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(2f);
|
||||
this.setStepSound(Block.soundWoodFootstep);
|
||||
this.setStepSound(Block.field_149766_f);
|
||||
}
|
||||
|
||||
//Block.hasComparatorInputOverride and Block.getComparatorInputOverride
|
||||
|
||||
@@ -30,7 +30,7 @@ public class DryingRack extends InventoryBlock
|
||||
super(Material.field_151575_d);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149711_c(2.0f);
|
||||
setStepSound(soundMetalFootstep);
|
||||
setStepSound(field_149777_j);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -25,7 +25,7 @@ public class GlassBlockConnected extends MantleBlock
|
||||
public GlassBlockConnected(String location, boolean hasAlpha)
|
||||
{
|
||||
super(Material.field_151592_s);
|
||||
this.setStepSound(soundGlassFootstep);
|
||||
this.setStepSound(field_149778_k);
|
||||
folder = location;
|
||||
renderPass = hasAlpha ? 1 : 0;
|
||||
func_149711_c(0.3F);
|
||||
|
||||
@@ -11,7 +11,7 @@ public class GlassPane extends PaneBase
|
||||
{
|
||||
super(Material.field_151592_s, "glass/", blockTextures);
|
||||
this.func_149711_c(0.3F);
|
||||
this.setStepSound(soundGlassFootstep);
|
||||
this.setStepSound(field_149778_k);
|
||||
this.func_149663_c("tconstruct.glasspane");
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class GlassPaneStained extends PaneBase
|
||||
super(Material.field_151592_s, "glass/", assembleBlockTextures());
|
||||
//TODO setHardness
|
||||
this.func_149711_c(0.3F);
|
||||
this.setStepSound(soundGlassFootstep);
|
||||
this.setStepSound(field_149778_k);
|
||||
this.func_149663_c("tconstruct.glasspanestained");
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class GravelOre extends BlockSand
|
||||
{
|
||||
super();
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.setStepSound(soundGravelFootstep);
|
||||
this.setStepSound(field_149767_g);
|
||||
this.field_149764_J = Material.field_151596_z;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,12 +34,12 @@ public class LavaTankBlock extends BlockContainer
|
||||
|
||||
public LavaTankBlock()
|
||||
{
|
||||
super(Material.rock);
|
||||
super(Material.field_151576_e);
|
||||
func_149711_c(3F);
|
||||
func_149752_b(20F);
|
||||
func_149647_a(TConstructRegistry.blockTab);
|
||||
func_149663_c("TConstruct.LavaTank");
|
||||
setStepSound(Block.soundGlassFootstep);
|
||||
setStepSound(Block.field_149778_k);
|
||||
}
|
||||
|
||||
public LavaTankBlock(String prefix)
|
||||
|
||||
@@ -21,7 +21,7 @@ public class SlimeGel extends TConstructBlock
|
||||
{
|
||||
public SlimeGel()
|
||||
{
|
||||
super(Material.sponge, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
|
||||
super(Material.field_151583_m, 0.5f, new String[] { "slimeblock_blue", "slimeblock_green", "slimeblock_purple" });
|
||||
func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public class SlimeGel extends TConstructBlock
|
||||
if (entity.motionY < -0.08F)
|
||||
{
|
||||
Block var9 = (Block) this;
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.stepSound.getStepSound(), (var9.stepSound.getVolume()) / 2.0F, var9.stepSound.getPitch() * 0.65F);
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.field_149762_H.getStepSound(), (var9.field_149762_H.getVolume()) / 2.0F, var9.field_149762_H.getPitch() * 0.65F);
|
||||
}
|
||||
entity.motionY *= -1.2F;
|
||||
if (entity instanceof EntityLivingBase)
|
||||
|
||||
@@ -92,7 +92,7 @@ public class SlimeGrass extends MantleBlock
|
||||
public boolean canSustainPlant (World world, int x, int y, int z, ForgeDirection direction, IPlantable plant)
|
||||
{
|
||||
EnumPlantType plantType = plant.getPlantType(world, x, y + 1, z);
|
||||
return plantType == EnumPlantType.Plains && plant.getPlantID(world, x, y + 1, z) != Block.tallGrass.blockID;
|
||||
return plantType == EnumPlantType.Plains && plant.getPlant(world, x, y + 1, z) != Blocks.tallgrass;
|
||||
}
|
||||
|
||||
public void onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
|
||||
|
||||
@@ -32,7 +32,7 @@ public class SlimeSapling extends BlockSapling
|
||||
float f = 0.4F;
|
||||
func_149676_a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
|
||||
this.func_149711_c(0.0F);
|
||||
this.setStepSound(Block.soundGrassFootstep);
|
||||
this.setStepSound(Block.field_149779_h);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class BarricadeBlock extends MantleBlock
|
||||
this.onPostBlockPlaced(world, x, y, z, meta);
|
||||
|
||||
Block var9 = this;
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.stepSound.getStepSound(), (var9.stepSound.getVolume() + 1.0F) / 2.0F, var9.stepSound.getPitch() * 0.8F);
|
||||
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, var9.field_149762_H.getStepSound(), (var9.field_149762_H.getVolume() + 1.0F) / 2.0F, var9.field_149762_H.getPitch() * 0.8F);
|
||||
player.swingItem();
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
stack.stackSize -= 1;
|
||||
|
||||
@@ -28,7 +28,7 @@ public class Punji extends MantleBlock
|
||||
{
|
||||
super(Material.field_151585_k);
|
||||
this.func_149676_a(0.125f, 0, 0.125f, 0.875f, 0.375f, 0.875f);
|
||||
this.setStepSound(Block.soundGrassFootstep);
|
||||
this.setStepSound(Block.field_149779_h);
|
||||
this.func_149647_a(TConstructRegistry.blockTab);
|
||||
this.func_149711_c(3.0f);
|
||||
}
|
||||
@@ -60,8 +60,8 @@ public class Punji extends MantleBlock
|
||||
if (stack != null && stack == new ItemStack(TRepo.punji))
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, meta + 1, 3);
|
||||
world.playSoundEffect((double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), this.stepSound.getPlaceSound(),
|
||||
(this.stepSound.getVolume() + 1.0F) / 2.0F, this.stepSound.getPitch() * 0.8F);
|
||||
world.playSoundEffect((double) ((float) x + 0.5F), (double) ((float) y + 0.5F), (double) ((float) z + 0.5F), this.field_149762_H.getPlaceSound(),
|
||||
(this.field_149762_H.getVolume() + 1.0F) / 2.0F, this.field_149762_H.getPitch() * 0.8F);
|
||||
player.swingItem();
|
||||
if (!player.capabilities.isCreativeMode)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user