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) |
void |
notifyBlockUpdate(World worldIn,
BlockPos pos,
IBlockState oldState,
IBlockState newState,
int flags) |
void |
notifyLightSet(BlockPos pos) |
void |
onEntityAdded(Entity entityIn) |
void |
onEntityRemoved(Entity entityIn) |
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 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 IWorldEventListener
public void onEntityAdded(Entity entityIn)
onEntityAdded
in interface IWorldEventListener
public void onEntityRemoved(Entity entityIn)
onEntityRemoved
in interface IWorldEventListener
public void playSoundToAllNearExcept(@Nullable EntityPlayer player, SoundEvent soundIn, SoundCategory category, double x, double y, double z, float volume, float pitch)
playSoundToAllNearExcept
in interface IWorldEventListener
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
markBlockRangeForRenderUpdate
in interface IWorldEventListener
public void notifyBlockUpdate(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
notifyBlockUpdate
in interface IWorldEventListener
public void notifyLightSet(BlockPos pos)
notifyLightSet
in interface IWorldEventListener
public void playRecord(SoundEvent soundIn, BlockPos pos)
playRecord
in interface IWorldEventListener
public void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data)
playEvent
in interface IWorldEventListener
public void broadcastSound(int soundID, BlockPos pos, int data)
broadcastSound
in interface IWorldEventListener
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
sendBlockBreakProgress
in interface IWorldEventListener