Advertisement
Corosus

Untitled

Aug 3rd, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.19 KB | None | 0 0
  1. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.kpdus.com/jad.html
  3. // Decompiler options: packimports(3) braces deadcode
  4.  
  5. package net.minecraft.src;
  6.  
  7. import java.util.Random;
  8. import java.util.*;
  9.  
  10.  
  11. // Referenced classes of package net.minecraft.src:
  12. //            Block, Material
  13.  
  14.  
  15.  
  16. public class BlockLauncher extends Block
  17. {
  18. public static int BOTTOM = 0;
  19. public static int TOP = 1;
  20. public static int EAST = 2;
  21. public static int WEST = 3;
  22. public static int NORTH = 4;
  23. public static int SOUTH = 5;
  24. public int sideTexture;
  25.  
  26.     public BlockLauncher(int i, int j)
  27.     {
  28.         super(i, j, Material.rock);
  29.         returned = true;
  30. sideTexture = ModLoader.addOverride("/terrain.png", "/launcher_texture.png");
  31. blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/launchertop_texture.png");
  32.     }
  33.    
  34. public int getBlockTextureFromSide(int side)
  35. {
  36.   if(side == TOP)
  37.   {
  38.      return blockIndexInTexture;
  39.   }
  40. else
  41. {
  42.      return sideTexture;
  43. }
  44. return blockIndexInTexture;
  45. }
  46.    
  47.     public void onEntityWalking(World world, int xPos, int yPos, int zPos, Entity entity)
  48. {
  49.           entity.motionY += 20;
  50.           entity.motionX += 0;     
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement