Advertisement
SatanicSanta

Untitled

Jul 29th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public class EnderPillar extends BlockRotatedPillar {
  2.  
  3. public EnderPillar(){
  4. super(Material.rock);
  5. this.setBlockName(BlockInfo.ENDERPILLAR_UNLOCALIZED_NAME);
  6. this.setCreativeTab(CreativeTabs.tabBlock);
  7. this.setHardness(1.5F);
  8. this.setResistance(10.0F);
  9. this.setStepSound(Block.soundTypeStone);
  10. }
  11.  
  12. @SideOnly(Side.CLIENT)
  13. public static IIcon endIcon;
  14. @SideOnly(Side.CLIENT)
  15. public static IIcon sideIcon;
  16.  
  17. @SideOnly(Side.CLIENT)
  18. public void registerIcons(IIconRegister icon){
  19. endIcon = icon.registerIcon("santasdecor:enderpillartop");
  20.  
  21. sideIcon = icon.registerIcon("santasdecor:enderpillar");
  22. }
  23.  
  24. @Override
  25. protected IIcon getSideIcon(int i) {
  26. return sideIcon;
  27. }
  28.  
  29. protected IIcon getEndIcon(int i){
  30. return endIcon;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement