IWorldAccess .java

net.minecraft.world.IWorldAccess (interface, 51 lines): members: broadcastSound, markBlockRangeForRenderUpdate, sendBlockBreakProgress, notifyLightSet.

net.minecraft.worldinterface51 linescommon1.9 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

IWorldAccess.java51 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.world;
2
3
import net.minecraft.entity.Entity;
4
import net.minecraft.entity.player.EntityPlayer;
5
import net.minecraft.util.BlockPos;
6
7
public interface IWorldAccess
8
{
9
    void markBlockForUpdate(BlockPos pos);
10
11
    void notifyLightSet(BlockPos pos);
12
13
    /**
14
     * On the client, re-renders all blocks in this range, inclusive. On the server, does nothing. Args: min x, min y,
15
     * min z, max x, max y, max z
16
     */
17
    void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2);
18
19
    /**
20
     * Plays the specified sound. Arg: soundName, x, y, z, volume, pitch
21
     */
22
    void playSound(String soundName, double x, double y, double z, float volume, float pitch);
23
24
    /**
25
     * Plays sound to all near players except the player reference given
26
     */
27
    void playSoundToNearExcept(EntityPlayer except, String soundName, double x, double y, double z, float volume, float pitch);
28
29
    void spawnParticle(int particleID, boolean ignoreRange, double xCoord, double yCoord, double zCoord, double xOffset, double yOffset, double zOffset, int... parameters);
30
31
    /**
32
     * Called on all IWorldAccesses when an entity is created or loaded. On client worlds, starts downloading any
33
     * necessary textures. On server worlds, adds the entity to the entity tracker.
34
     */
35
    void onEntityAdded(Entity entityIn);
36
37
    /**
38
     * Called on all IWorldAccesses when an entity is unloaded or destroyed. On client worlds, releases any downloaded
39
     * textures. On server worlds, removes the entity from the entity tracker.
40
     */
41
    void onEntityRemoved(Entity entityIn);
42
43
    void playRecord(String recordName, BlockPos blockPosIn);
44
45
    void broadcastSound(int soundID, BlockPos pos, int data);
46
47
    void playAuxSFX(EntityPlayer player, int sfxType, BlockPos blockPosIn, int data);
48
49
    void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress);
50
}
51

Deobfuscated MCP 1.8.9 source of IWorldAccess from Marcelektro/MavenMCP-1.8.9 (net/minecraft/world/IWorldAccess.java), stored verbatim.