Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class BlockDStepBase extends Block
- {
- public BlockDStepBase(int i, int j)
- {
- super(i,j,Material.ground);
- if(i==111)
- {
- setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
- }
- setLightOpacity(255);
- }
- public int getBlockTextureFromSideAndMetadata(int i, int j)
- {
- int a;
- switch(j)
- {
- case 0:
- a= mod_Block.blockBaseTexture;
- break;
- case 1:
- a= mod_Block.blockBlank1Texture;
- break;
- case 2:
- a= mod_Block.blockBlank2Texture;
- break;
- default:
- a= mod_Block.blockBaseTexture;
- break;
- }
- return a;
- }
- public int idDropped(int i, Random random)
- {
- return blockID;
- }
- public int quantityDropped(Random random)
- {
- if(blockID==110)
- {
- return 1;
- }
- return 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement