public class ServerWorldEventHandler extends java.lang.Object implements IWorldEventListener
| Constructor and Description |
|---|
ServerWorldEventHandler(MinecraftServer mcServerIn,
WorldServer worldServerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
On the client, re-renders all blocks in this range, inclusive.
|
void |
notifyBlockUpdate(World worldIn,
BlockPos pos,
IBlockState oldState,
IBlockState newState,
int flags) |
void |
notifyLightSet(BlockPos pos) |
void |
onEntityAdded(Entity entityIn)
Called on all IWorldAccesses when an entity is created or loaded.
|
void |
onEntityRemoved(Entity entityIn)
Called on all IWorldAccesses when an entity is unloaded or destroyed.
|
void |
playEvent(EntityPlayer player,
int type,
BlockPos blockPosIn,
int data) |
void |
playRecord(SoundEvent soundIn,
BlockPos pos) |
void |
playSoundToAllNearExcept(EntityPlayer player,
SoundEvent soundIn,
SoundCategory category,
double x,
double y,
double z,
float volume,
float pitch) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
spawnParticle(int p_190570_1_,
boolean p_190570_2_,
boolean p_190570_3_,
double p_190570_4_,
double p_190570_6_,
double p_190570_8_,
double p_190570_10_,
double p_190570_12_,
double p_190570_14_,
int... p_190570_16_) |
void |
spawnParticle(int particleID,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
public ServerWorldEventHandler(MinecraftServer mcServerIn, WorldServer worldServerIn)
public void spawnParticle(int particleID,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters)
spawnParticle in interface IWorldEventListenerpublic void spawnParticle(int p_190570_1_,
boolean p_190570_2_,
boolean p_190570_3_,
double p_190570_4_,
double p_190570_6_,
double p_190570_8_,
double p_190570_10_,
double p_190570_12_,
double p_190570_14_,
int... p_190570_16_)
spawnParticle in interface IWorldEventListenerpublic void onEntityAdded(Entity entityIn)
onEntityAdded in interface IWorldEventListenerpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in interface IWorldEventListenerpublic void playSoundToAllNearExcept(EntityPlayer player, SoundEvent soundIn, SoundCategory category, double x, double y, double z, float volume, float pitch)
playSoundToAllNearExcept in interface IWorldEventListenerpublic void markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
markBlockRangeForRenderUpdate in interface IWorldEventListenerpublic void notifyBlockUpdate(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
notifyBlockUpdate in interface IWorldEventListenerpublic void notifyLightSet(BlockPos pos)
notifyLightSet in interface IWorldEventListenerpublic void playRecord(SoundEvent soundIn, BlockPos pos)
playRecord in interface IWorldEventListenerpublic void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data)
playEvent in interface IWorldEventListenerpublic void broadcastSound(int soundID,
BlockPos pos,
int data)
broadcastSound in interface IWorldEventListenerpublic void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
sendBlockBreakProgress in interface IWorldEventListener