Package net.glowstone.scheduler

Examples of net.glowstone.scheduler.WorldScheduler$WorldEntry


  public static void setup(World world, float partialTick, float celestialAngle) {
    if (TexturePackAPI.isDefaultTexturePack()) {
      active = false;
    } else {
      int worldType = Minecraft.getMinecraft().theWorld.provider.dimensionId;
      SkyRenderer$WorldEntry newEntry = getWorldEntry(worldType);

      if (newEntry != currentWorld && currentWorld != null) {
        currentWorld.unloadTextures();
      }
View Full Code Here


    return defaultTexture;
  }

  private static SkyRenderer$WorldEntry getWorldEntry(int worldType) {
    SkyRenderer$WorldEntry entry = (SkyRenderer$WorldEntry)worldSkies.get(Integer.valueOf(worldType));

    if (entry == null) {
      entry = new SkyRenderer$WorldEntry(worldType);
      worldSkies.put(Integer.valueOf(worldType), entry);
    }

    return entry;
  }
View Full Code Here

TOP

Related Classes of net.glowstone.scheduler.WorldScheduler$WorldEntry

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.