Package net.minecraft.util

Examples of net.minecraft.util.EnumFacing.ordinal()


      {
        int x = dispenser.getXInt() + enumfacing.getFrontOffsetX();
        int y = dispenser.getYInt() + enumfacing.getFrontOffsetY();
        int z = dispenser.getZInt() + enumfacing.getFrontOffsetZ();

        tm.onItemUse( dispensedItem, Platform.getPlayer( (WorldServer) w ), w, x, y, z, enumfacing.ordinal(), 0.5f, 0.5f, 0.5f );
      }
    }
    return dispensedItem;
  }
}
View Full Code Here


        EnumFacing facing = getFacing(par1World, par2, par3, par4);

        for (int i = 0; i < par5ItemStack.stackSize; i++)
        {
            // TODO entity registration and stuffs
            EntityLandmineFirework entityfireworkrocket = new EntityLandmineFirework(par1World, (double) par2, (double) par3, (double) par4, par5ItemStack, facing.ordinal()).setRider(i == 0 ? triggerer : null);
            par1World.spawnEntityInWorld(entityfireworkrocket);

            boolean shouldRun = true;
            if (triggerer instanceof EntityPlayer)
            {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.