Interface IWorldAccess

All Known Implementing Classes:
RenderGlobal, WorldManager

public interface IWorldAccess
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    broadcastSound(int var1, int var2, int var3, int var4, int var5)
     
    void
    destroyBlockPartially(int var1, int var2, int var3, int var4, int var5)
    Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed value
    void
    markBlockForRenderUpdate(int var1, int var2, int var3)
    On the client, re-renders this block.
    void
    markBlockForUpdate(int var1, int var2, int var3)
    On the client, re-renders the block.
    void
    markBlockRangeForRenderUpdate(int var1, int var2, int var3, int var4, int var5, int var6)
    On the client, re-renders all blocks in this range, inclusive.
    void
    Called on all IWorldAccesses when an entity is created or loaded.
    void
    Called on all IWorldAccesses when an entity is unloaded or destroyed.
    void
    playAuxSFX(EntityPlayer var1, int var2, int var3, int var4, int var5, int var6)
    Plays a pre-canned sound effect along with potentially auxiliary data-driven one-shot behaviour (particles, etc).
    void
    playRecord(String var1, int var2, int var3, int var4)
    Plays the specified record.
    void
    playSound(String var1, double var2, double var4, double var6, float var8, float var9)
    Plays the specified sound.
    void
    playSoundToNearExcept(EntityPlayer var1, String var2, double var3, double var5, double var7, float var9, float var10)
    Plays sound to all near players except the player reference given
    void
    spawnParticle(String var1, double var2, double var4, double var6, double var8, double var10, double var12)
    Spawns a particle.
  • Method Details

    • markBlockForUpdate

      void markBlockForUpdate(int var1, int var2, int var3)
      On the client, re-renders the block. On the server, sends the block to the client (which will re-render it), including the tile entity description packet if applicable. Args: x, y, z
    • markBlockForRenderUpdate

      void markBlockForRenderUpdate(int var1, int var2, int var3)
      On the client, re-renders this block. On the server, does nothing. Used for lighting updates.
    • markBlockRangeForRenderUpdate

      void markBlockRangeForRenderUpdate(int var1, int var2, int var3, int var4, int var5, int var6)
      On the client, re-renders all blocks in this range, inclusive. On the server, does nothing. Args: min x, min y, min z, max x, max y, max z
    • playSound

      void playSound(String var1, double var2, double var4, double var6, float var8, float var9)
      Plays the specified sound. Arg: soundName, x, y, z, volume, pitch
    • playSoundToNearExcept

      void playSoundToNearExcept(EntityPlayer var1, String var2, double var3, double var5, double var7, float var9, float var10)
      Plays sound to all near players except the player reference given
    • spawnParticle

      void spawnParticle(String var1, double var2, double var4, double var6, double var8, double var10, double var12)
      Spawns a particle. Arg: particleType, x, y, z, velX, velY, velZ
    • onEntityCreate

      void onEntityCreate(Entity var1)
      Called on all IWorldAccesses when an entity is created or loaded. On client worlds, starts downloading any necessary textures. On server worlds, adds the entity to the entity tracker.
    • onEntityDestroy

      void onEntityDestroy(Entity var1)
      Called on all IWorldAccesses when an entity is unloaded or destroyed. On client worlds, releases any downloaded textures. On server worlds, removes the entity from the entity tracker.
    • playRecord

      void playRecord(String var1, int var2, int var3, int var4)
      Plays the specified record. Arg: recordName, x, y, z
    • broadcastSound

      void broadcastSound(int var1, int var2, int var3, int var4, int var5)
    • playAuxSFX

      void playAuxSFX(EntityPlayer var1, int var2, int var3, int var4, int var5, int var6)
      Plays a pre-canned sound effect along with potentially auxiliary data-driven one-shot behaviour (particles, etc).
    • destroyBlockPartially

      void destroyBlockPartially(int var1, int var2, int var3, int var4, int var5)
      Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed value