Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In block.java:
- public static final Block field_10008_a;
- ...
- field_10008_a = (new BlockSandstone(92, 176, false)).setHardness(1.0F).setStepSound(soundStoneFootstep);
- In craftingmanager.java:
- addRecipe(new ItemStack(Block.field_10008_a, 1), new Object[] {
- "###", "###", "###", Character.valueOf('#'), Block.sand
- });
- NEW: BlockSandstone.java:
- package net.minecraft.src;
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode
- public class BlockSandstone extends Block
- {
- protected BlockSandstone(int i, int j, boolean flag)
- {
- super(i, Material.rock);
- blockIndexInTexture = j;
- setTickOnLoad(true);
- field_10008_a = flag;
- }
- public int getBlockTextureFromSideAndMetadata(int i, int j)
- {
- if(i == 1)
- {
- return blockIndexInTexture;
- }
- if(i == 0)
- {
- return blockIndexInTexture;
- }
- int k = blockIndexInTexture + 1 + 16;
- if(field_10008_a)
- {
- k++;
- }
- if(j == 0 && i == 2)
- {
- return 192;
- }
- if(j == 1 && i == 5)
- {
- return 192;
- }
- if(j == 2 && i == 3)
- {
- return 192;
- }
- if(j == 3 && i == 4)
- {
- return 192;
- } else
- {
- return 192;
- }
- }
- public int getBlockTextureFromSide(int i)
- {
- if(i == 1)
- {
- return blockIndexInTexture;
- }
- if(i == 0)
- {
- return blockIndexInTexture;
- }
- if(i == 3)
- {
- return 192;
- } else
- {
- return 192;
- }
- }
- public void onBlockAdded(World world, int i, int j, int k)
- {
- super.onBlockAdded(world, i, j, k);
- }
- public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
- {
- int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
- world.setBlockMetadataWithNotify(i, j, k, l);
- }
- private boolean field_10008_a;
- }
Advertisement
Add Comment
Please, Sign In to add comment