Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode
- package net.minecraft.src;
- import java.util.Random;
- import java.util.*;
- // Referenced classes of package net.minecraft.src:
- // Block, Material
- public class BlockLauncher extends Block
- {
- public static int BOTTOM = 0;
- public static int TOP = 1;
- public static int EAST = 2;
- public static int WEST = 3;
- public static int NORTH = 4;
- public static int SOUTH = 5;
- public int sideTexture;
- public BlockLauncher(int i, int j)
- {
- super(i, j, Material.rock);
- returned = true;
- sideTexture = ModLoader.addOverride("/terrain.png", "/launcher_texture.png");
- blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/launchertop_texture.png");
- }
- public int getBlockTextureFromSide(int side)
- {
- if(side == TOP)
- {
- return blockIndexInTexture;
- }
- else
- {
- return sideTexture;
- }
- return blockIndexInTexture;
- }
- public void onEntityWalking(World world, int xPos, int yPos, int zPos, Entity entity)
- {
- entity.motionY += 20;
- entity.motionX += 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement