TheQuack45

smallLineTarmacBlock.java

May 18th, 2014
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. package com.bsgamestudios.mcmods.airportcomponents.blocks;
  2.  
  3. import cpw.mods.fml.relauncher.Side;
  4. import cpw.mods.fml.relauncher.SideOnly;
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.util.Icon;
  8. import net.minecraft.client.renderer.texture.IconRegister;
  9.  
  10. public class SmallLineTarmacBlock extends Block {
  11.    
  12.     Icon smallLineTarmacTexture, blankTarmacTexture;
  13.    
  14.     public SmallLineTarmacBlock (Material material) {
  15.         super(3521, material);
  16.     }
  17.    
  18.     @SideOnly(Side.CLIENT)
  19.     public void registerBlockIcons(IconRegister iconRegister) {
  20.         smallLineTarmacTexture = iconRegister.registerIcon("airportcomponents:smallLineTarmacBlockTexture");
  21.         blankTarmacTexture = iconRegister.registerIcon("airportcomponents:blankTarmacBlockTexture");
  22.     }
  23.    
  24.     public Icon getItem(int meta, int side) {
  25.         if (side == 1) {
  26.             return smallLineTarmacTexture;
  27.         } else {
  28.             return blankTarmacTexture;
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment