Class WorldClient

  • All Implemented Interfaces:
    IBlockAccess

    public class WorldClient
    extends World
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Method Detail

      • tick

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

        public void invalidateBlockReceiveRegion​(int parInt1,
                                                 int parInt2,
                                                 int parInt3,
                                                 int parInt4,
                                                 int parInt5,
                                                 int parInt6)
        + 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
      • updateBlocks

        protected void updateBlocks()
        Overrides:
        updateBlocks in class World
      • doPreChunk

        public void doPreChunk​(int parInt1,
                               int parInt2,
                               boolean parFlag)
      • spawnEntityInWorld

        public boolean spawnEntityInWorld​(Entity entity)
        + Called when an entity is spawned in the world. This includes players.
        Overrides:
        spawnEntityInWorld in class World
      • removeEntity

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

        public void addEntityToWorld​(int parInt1,
                                     Entity parEntity)
        + Add an ID to Entity mapping to entityHashSet
      • getEntityByID

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

        public Entity removeEntityFromWorld​(int parInt1)
      • invalidateRegionAndSetBlock

        public boolean invalidateRegionAndSetBlock​(BlockPos parBlockPos,
                                                   IBlockState parIBlockState)
      • updateWeather

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

        public void doVoidFogParticles​(int parInt1,
                                       int parInt2,
                                       int parInt3)
      • removeAllEntities

        public void removeAllEntities()
        + also releases skins.
      • playSoundAtPos

        public void playSoundAtPos​(BlockPos parBlockPos,
                                   java.lang.String parString1,
                                   float parFloat1,
                                   float parFloat2,
                                   boolean parFlag)
        + Plays a sound at the specified position.
      • playSound

        public void playSound​(double d0,
                              double d1,
                              double d2,
                              java.lang.String s,
                              float f,
                              float f1,
                              boolean flag)
        + par8 is loudness, all pars passed to minecraftInstance.sndManager.playSound
        Overrides:
        playSound in class World
      • makeFireworks

        public void makeFireworks​(double d0,
                                  double d1,
                                  double d2,
                                  double d3,
                                  double d4,
                                  double d5,
                                  NBTTagCompound nbttagcompound)
        Overrides:
        makeFireworks in class World
      • setWorldScoreboard

        public void setWorldScoreboard​(Scoreboard parScoreboard)
      • setWorldTime

        public void setWorldTime​(long i)
        + Sets the world time.
        Overrides:
        setWorldTime in class World