YATS/Forge Documentation
|
Public Member Functions | |
WorldManager (MinecraftServer par1MinecraftServer, WorldServer par2WorldServer) | |
void | spawnParticle (String par1Str, double par2, double par4, double par6, double par8, double par10, double par12) |
void | onEntityCreate (Entity par1Entity) |
void | onEntityDestroy (Entity par1Entity) |
void | playSound (String par1Str, double par2, double par4, double par6, float par8, float par9) |
void | playSoundToNearExcept (EntityPlayer par1EntityPlayer, String par2Str, double par3, double par5, double par7, float par9, float par10) |
void | markBlockRangeForRenderUpdate (int par1, int par2, int par3, int par4, int par5, int par6) |
void | markBlockForUpdate (int par1, int par2, int par3) |
void | markBlockForRenderUpdate (int par1, int par2, int par3) |
void | playRecord (String par1Str, int par2, int par3, int par4) |
void | playAuxSFX (EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5, int par6) |
void | broadcastSound (int par1, int par2, int par3, int par4, int par5) |
void | destroyBlockPartially (int par1, int par2, int par3, int par4, int par5) |
net.minecraft.world.WorldManager.WorldManager | ( | MinecraftServer | par1MinecraftServer, |
WorldServer | par2WorldServer | ||
) |
void net.minecraft.world.WorldManager.broadcastSound | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.destroyBlockPartially | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Starts (or continues) destroying a block with given ID at the given coordinates for the given partially destroyed value
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.markBlockForRenderUpdate | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
On the client, re-renders this block. On the server, does nothing. Used for lighting updates.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.markBlockForUpdate | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
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
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.markBlockRangeForRenderUpdate | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
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
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.onEntityCreate | ( | Entity | par1Entity) |
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.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.onEntityDestroy | ( | Entity | par1Entity) |
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.
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.playAuxSFX | ( | EntityPlayer | par1EntityPlayer, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
Plays a pre-canned sound effect along with potentially auxiliary data-driven one-shot behaviour (particles, etc).
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.playRecord | ( | String | par1Str, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Plays the specified record. Arg: recordName, x, y, z
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.playSound | ( | String | par1Str, |
double | par2, | ||
double | par4, | ||
double | par6, | ||
float | par8, | ||
float | par9 | ||
) |
Plays the specified sound. Arg: soundName, x, y, z, volume, pitch
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.playSoundToNearExcept | ( | EntityPlayer | par1EntityPlayer, |
String | par2Str, | ||
double | par3, | ||
double | par5, | ||
double | par7, | ||
float | par9, | ||
float | par10 | ||
) |
Plays sound to all near players except the player reference given
Implements net.minecraft.world.IWorldAccess.
void net.minecraft.world.WorldManager.spawnParticle | ( | String | par1Str, |
double | par2, | ||
double | par4, | ||
double | par6, | ||
double | par8, | ||
double | par10, | ||
double | par12 | ||
) |
Spawns a particle. Arg: particleType, x, y, z, velX, velY, velZ
Implements net.minecraft.world.IWorldAccess.