mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
moar fixes
This commit is contained in:
1 parent
199a92f47a
commit
3cc541e872
7 files changed
+28
-22
No files matched your search
@@ -17,9 +17,9 @@ public class MultiBrick extends TConstructBlock
|
||||
static String blockTextures[] = { "brick_obsidian", "brick_sandstone", "brick_netherrack", "brick_stone_refined", "brick_iron", "brick_gold", "brick_lapis", "brick_diamond", "brick_redstone",
|
||||
"brick_bone", "brick_slime", "brick_blueslime", "brick_endstone", "brick_obsidian_ingot" };
|
||||
|
||||
public MultiBrick(int id)
|
||||
public MultiBrick()
|
||||
{
|
||||
super(id, Material.rock, 3f, blockTextures);
|
||||
super(Material.field_151576_e, 3f, blockTextures);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -57,7 +57,7 @@ public class MultiBrick extends TConstructBlock
|
||||
case 13:
|
||||
return Blocks.obsidian.func_149712_f(world, x, y, z);
|
||||
default:
|
||||
return blockHardness;
|
||||
return field_149782_v;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ public class MultiBrick extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
|
||||
public void func_149670_a (World world, int x, int y, int z, Entity entity)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
@@ -110,14 +110,14 @@ public class MultiBrick extends TConstructBlock
|
||||
entity.fallDistance = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//TODO getCollisionBoundingBoxFromPool
|
||||
@Override
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
|
||||
public AxisAlignedBB func_149668_a (World world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
return AxisAlignedBB.getBoundingBox(x, y, z, (double) x + 1.0D, (double) y + 0.625D, (double) z + 1.0D);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@@ -133,7 +133,7 @@ public class MultiBrick extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public int isProvidingWeakPower (IBlockAccess world, int x, int y, int z, int side)
|
||||
public int func_149709_b (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
if (world.getBlockMetadata(x, y, z) == 8)
|
||||
return 4;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
|
||||
public MultiBrickFancy()
|
||||
{
|
||||
super(material.rock, 3f, blockTextures);
|
||||
super(Material.field_151576_e, 3f, blockTextures);
|
||||
}
|
||||
//TODO func_149712_f
|
||||
@Override
|
||||
@@ -60,7 +60,7 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
case 15:
|
||||
return Blocks.stone.func_149712_f(world, x, y, z);
|
||||
default:
|
||||
return blockHardness;
|
||||
return field_149782_v;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,8 +104,9 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
}
|
||||
}
|
||||
|
||||
//TODO onEntityCollidedWithBlock
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
|
||||
public void func_149670_a (World world, int x, int y, int z, Entity entity)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
@@ -117,12 +118,12 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z)
|
||||
public AxisAlignedBB func_149668_a (World world, int x, int y, int z)
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta == 10 || meta == 11)
|
||||
return AxisAlignedBB.getBoundingBox(x, y, z, (double) x + 1.0D, (double) y + 0.625D, (double) z + 1.0D);
|
||||
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
|
||||
return super.func_149668_a(world, x, y, z);
|
||||
}
|
||||
|
||||
/*@Override
|
||||
@@ -137,14 +138,16 @@ public class MultiBrickFancy extends TConstructBlock
|
||||
return world.getBlockMetadata(x, y, z) != 8;
|
||||
}
|
||||
|
||||
//TODO canProvidePower
|
||||
@Override
|
||||
public boolean canProvidePower ()
|
||||
public boolean func_149744_f ()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//TODO isProvindingWeakPower
|
||||
@Override
|
||||
public int isProvidingWeakPower (IBlockAccess world, int x, int y, int z, int side)
|
||||
public int func_149709_b (IBlockAccess world, int x, int y, int z, int side)
|
||||
{
|
||||
if (world.getBlockMetadata(x, y, z) == 8)
|
||||
return 4;
|
||||
|
||||
@@ -8,6 +8,7 @@ import net.minecraft.block.material.Material;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
@@ -269,7 +270,7 @@ public class SmelteryBlock extends InventoryBlock
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public void getSubBlocks (Block b, CreativeTabs tab, List list)
|
||||
public void getSubBlocks (Item b, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < 12; iter++)
|
||||
{
|
||||
|
||||
@@ -4,11 +4,11 @@ import java.util.List;
|
||||
|
||||
import mantle.blocks.MantleBlock;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -63,8 +63,9 @@ public class TConstructBlock extends MantleBlock
|
||||
return 1;
|
||||
}
|
||||
|
||||
//TODO getSubBlocks
|
||||
@Override
|
||||
public void getSubBlocks (Block block, CreativeTabs tab, List list)
|
||||
public void func_149666_a (Item block, CreativeTabs tab, List list)
|
||||
{
|
||||
for (int iter = 0; iter < icons.length; iter++)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ public class EventCloakRender
|
||||
|
||||
if (!capePlayers.contains(abstractClientPlayer))
|
||||
{
|
||||
String cloakURL = cloaks.get(event.entityPlayer.username);
|
||||
String cloakURL = cloaks.get(event.entityPlayer.getDisplayName());
|
||||
|
||||
if (cloakURL == null)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ public class OreberryBushItem extends MultiItemBlock
|
||||
|
||||
else if (player.canPlayerEdit(x, y, z, side, stack) && player.canPlayerEdit(x, y + 1, z, side, stack))
|
||||
{
|
||||
Block block = Block.blocksList[world.getBlockId(x, y, z)];
|
||||
Block block = world.getBlock(x, y, z);
|
||||
|
||||
if (block != null && block.canSustainPlant(world, x, y, z, ForgeDirection.UP, (IPlantable) TRepo.oreBerry) && world.isAirBlock(x, y + 1, z))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user