Advertisement
ElectricX

Untitled

May 16th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. getIcon code here:
  2.  
  3. @SideOnly(Side.CLIENT)
  4. public Icon getIcon(int side, int metadata){
  5. if(side == 0){
  6. return iconBottom;
  7. }else if(side == 1){
  8. return blockIcon;
  9. }else{
  10. return blockIcon;
  11. }
  12. }
  13.  
  14.  
  15. texture "declaration" here:
  16.  
  17. @SideOnly(Side.CLIENT)
  18. public void registerIcons(IconRegister iconRegister){
  19. this.blockIcon = iconRegister.registerIcon(morefoodmod.modid + ":" + "blender_side");
  20. this.iconFront = iconRegister.registerIcon(morefoodmod.modid + ":" + (this.isActive ? "blender_front_active" : "blender_front_inactive"));
  21. this.iconBottom = iconRegister.registerIcon(morefoodmod.modid + ":" + "blender_bottom");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement