Package net.minecraft.world

Examples of net.minecraft.world.WorldProvider


    return ForgeDirection.VALID_DIRECTIONS[getEntityFacingCardinal(living)];
  }

  public static void transferEntityToWorld(Entity entity, WorldServer oldWorld, WorldServer newWorld) {

    WorldProvider pOld = oldWorld.provider;
    WorldProvider pNew = newWorld.provider;
    double moveFactor = pOld.getMovementFactor() / pNew.getMovementFactor();
    double x = entity.posX * moveFactor;
    double z = entity.posZ * moveFactor;

    oldWorld.theProfiler.startSection("placing");
    x = MathHelper.clamp_double(x, -29999872, 29999872);
View Full Code Here


        return false;
    }

    public int getAirProducts()
    {
        WorldProvider WP = this.worldObj.provider;
        if (WP instanceof WorldProviderSpace)
        {
            int result = 0;
            ArrayList<IAtmosphericGas> atmos = ((WorldProviderSpace)WP).getCelestialBody().atmosphere;
            if (atmos.size() > 0)
View Full Code Here

        return this.liquidTank.getFluidAmount() < this.liquidTank.getCapacity();
    }

    public int getAirProducts()
    {
        WorldProvider WP = this.worldObj.provider;
        if (WP instanceof WorldProviderSpace)
        {
            ArrayList<IAtmosphericGas> atmos = ((WorldProviderSpace)WP).getCelestialBody().atmosphere;
            if (atmos.size() > 0)
            {
View Full Code Here

        GL11.glPushMatrix();
        //Skip tiles in inventory or in player's hand etc
        if (ClientProxyCore.smallMoonActive && (offsetX != 0.0D || offsetY != 0.0D || offsetZ != 0.0D))
        {
            final EntityPlayerSP player = ClientProxyCore.mc.thePlayer;
            final WorldProvider provider = ClientProxyCore.mc.theWorld.provider;
            if (provider instanceof WorldProviderMoon)
            {
                if (player.posY > ClientProxyCore.terrainHeight + 8F)
                {
                    double globalArc = ClientProxyCore.globalRadius / 57.2957795D;
View Full Code Here

    {
      int dim = fmData.getInteger("teDim");
      int x = fmData.getInteger("teCoordX");
      int y = fmData.getInteger("teCoordY");
      int z = fmData.getInteger("teCoordZ");
      WorldProvider wp = WorldUtil.getProviderForDimension(dim);
      if (wp == null) System.out.println("Frequency module worn: world provider is null.  This is a bug. "+dim);
      TileEntity te = wp.worldObj.getTileEntity(x, y, z);
      if (te instanceof TileEntityTelemetry)
      {
        if (player == null)
View Full Code Here

      this.chunkX = event.chunkX;
      this.chunkZ = event.chunkZ;
     
      int dimDetected = 0;
     
      WorldProvider prov = worldObj.provider;
      if (!(prov instanceof IGalacticraftWorldProvider) || (prov instanceof WorldProviderOrbit))
        return;
     
      Block stoneBlock = null;
      int stoneMeta = 0;
View Full Code Here

            if (this.targetVec != null)
            {
                if (this.targetDimension != this.worldObj.provider.dimensionId)
                {
                    WorldProvider targetDim = WorldUtil.getProviderForDimension(this.targetDimension);                  
                    if (targetDim != null)
                    {
                      WorldServer worldServer = mcserver.worldServerForDimension(this.targetDimension);
                        if (worldServer != null)
                        {
View Full Code Here

      GL11.glEnable(GL11.GL_CLIP_PLANE3);
     
      switch(type)
        {
        case 2:
            WorldProvider wp = scr.getWorldProvider();
            CelestialBody body = null;
            if (wp instanceof IGalacticraftWorldProvider)
              body = ((IGalacticraftWorldProvider)wp).getCelestialBody();
            if (body == null) body = GalacticraftCore.planetOverworld;
          drawCelestialBodies(body, ticks);
View Full Code Here

                        {
                            GCLog.severe("Problem matching player name in space station check: " + this.selectedStationOwner);
                            return false;
                        }
                        int spacestationID = mapping;
                        WorldProvider spacestation = WorldUtil.getProviderForDimension(spacestationID);
                        if (spacestation != null)
                        {
                            dimension = spacestation.getDimensionName();
                        }
                        else
                        {
                            GCLog.severe("Failed to find a spacestation with dimension " + spacestationID);
                            return false;
View Full Code Here

                n = "DIM" + w.provider.dimensionId;
            }
        }
        else // Legacy mapping
            n = w.getWorldInfo().getWorldName();
            WorldProvider wp = w.provider;
            switch(wp.dimensionId) {
                case 0:
                    break;
                case -1:
                    n += "_nether";
View Full Code Here

TOP

Related Classes of net.minecraft.world.WorldProvider

Copyright © 2018 www.massapicom. 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.