Class WorldClient

java.lang.Object
net.minecraft.src.World
net.minecraft.src.WorldClient
All Implemented Interfaces:
IBlockAccess

@Environment(CLIENT) public class WorldClient extends World
  • Field Details

  • Constructor Details

  • Method Details

    • tick

      public void tick()
      Runs a single tick for the world
      Overrides:
      tick in class World
    • invalidateBlockReceiveRegion

      public void invalidateBlockReceiveRegion(int par1, int par2, int par3, int par4, int par5, int par6)
      Invalidates an AABB region of blocks from the receive queue, in the event that the block has been modified client-side in the intervening 80 receive ticks.
    • createChunkProvider

      protected IChunkProvider createChunkProvider()
      Creates the chunk provider for this world. Called in the constructor. Retrieves provider from worldProvider?
      Specified by:
      createChunkProvider in class World
    • tickBlocksAndAmbiance

      protected void tickBlocksAndAmbiance()
      plays random cave ambient sounds and runs updateTick on random blocks within each chunk in the vacinity of a player
      Overrides:
      tickBlocksAndAmbiance in class World
    • doPreChunk

      public void doPreChunk(int par1, int par2, boolean par3)
    • spawnEntityInWorld

      public boolean spawnEntityInWorld(Entity par1Entity)
      Called to place all entities as part of a world
      Overrides:
      spawnEntityInWorld in class World
    • removeEntity

      public void removeEntity(Entity par1Entity)
      Schedule the entity for removal during the next tick. Marks the entity dead in anticipation.
      Overrides:
      removeEntity in class World
    • onEntityAdded

      protected void onEntityAdded(Entity par1Entity)
      Overrides:
      onEntityAdded in class World
    • onEntityRemoved

      protected void onEntityRemoved(Entity par1Entity)
      Overrides:
      onEntityRemoved in class World
    • addEntityToWorld

      public void addEntityToWorld(int par1, Entity par2Entity)
      Add an ID to Entity mapping to entityHashSet
    • getEntityByID

      public Entity getEntityByID(int par1)
      Returns the Entity with the given ID, or null if it doesn't exist in this World.
      Specified by:
      getEntityByID in class World
    • removeEntityFromWorld

      public Entity removeEntityFromWorld(int par1)
    • setBlockAndMetadataAndInvalidate

      public boolean setBlockAndMetadataAndInvalidate(int par1, int par2, int par3, int par4, int par5)
    • sendQuittingDisconnectingPacket

      public void sendQuittingDisconnectingPacket()
      If on MP, sends a quitting packet.
      Overrides:
      sendQuittingDisconnectingPacket in class World
    • getMinecartSoundUpdater

      public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
      Overrides:
      getMinecartSoundUpdater in class World
    • updateWeather

      protected void updateWeather()
      Updates all weather states.
      Overrides:
      updateWeather in class World
    • doVoidFogParticles

      public void doVoidFogParticles(int par1, int par2, int par3)
    • removeAllEntities

      public void removeAllEntities()
      FCNOTE: This is not accurately named. It only removes all entities in the unload queue, NOT all loaded entities.
    • addWorldInfoToCrashReport

      public CrashReportCategory addWorldInfoToCrashReport(CrashReport par1CrashReport)
      Adds some basic stats of the world to the given crash report.
      Overrides:
      addWorldInfoToCrashReport in class World
    • playSound

      public void playSound(double par1, double par3, double par5, String par7Str, float par8, float par9, boolean par10)
      par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
      Overrides:
      playSound in class World
    • func_92088_a

      public void func_92088_a(double par1, double par3, double par5, double par7, double par9, double par11, NBTTagCompound par13NBTTagCompound)
      Overrides:
      func_92088_a in class World
    • func_96443_a

      public void func_96443_a(Scoreboard par1Scoreboard)
    • setWorldTime

      public void setWorldTime(long par1)
      Sets the world time.
      Overrides:
      setWorldTime in class World
    • updateActiveChunkMap

      protected void updateActiveChunkMap()
      Overrides:
      updateActiveChunkMap in class World
    • unloadEntities

      public void unloadEntities(List entityList)
      Description copied from class: World
      Adds a list of entities to be unloaded on the next pass of World.updateEntities()
      Overrides:
      unloadEntities in class World
    • markTileEntityForDespawn

      public void markTileEntityForDespawn(TileEntity tileEntity)
      Description copied from class: World
      adds tile entity to despawn list (renamed from markEntityForDespawn)
      Overrides:
      markTileEntityForDespawn in class World
    • getData

      public <T> T getData(DataEntry.WorldDataEntry<T> entry)
      Specified by:
      getData in class World
    • setData

      public <T> void setData(DataEntry.WorldDataEntry<T> entry, T value)
      Specified by:
      setData in class World