Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class CorruptGrass extends Block
- {
- public CorruptGrass(int i, int j)
- {
- super(i, j, Material.grass);
- }
- public int idDropped(int i, Random random, int j)
- {
- return mod_Corruption.CorruptDirt.blockID;
- }
- public int quantityDropped(Random random)
- {
- return 1;
- }
- public int getBlockTextureFromSideAndMetadata(int i, int j)
- {
- return getBlockTextureFromSide(i);
- }
- public int getBlockTextureFromSide(int i)
- {
- if (i == 0)
- {
- return mod_Corruption.CorruptGrassBottom;
- }
- if (i == 1)
- {
- return mod_Corruption.CorruptGrassTop;
- }
- else
- {
- return mod_Corruption.CorruptGrassSide;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement