public class ServerWorldEventHandler extends java.lang.Object implements IWorldEventListener
| Constructor and Description |
|---|
ServerWorldEventHandler(MinecraftServer mcServerIn,
WorldServer worldServerIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParticle(IParticleData particleData,
boolean ignoreRange,
boolean minimizeLevel,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean alwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
notifyBlockUpdate(IBlockReader 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) |
public ServerWorldEventHandler(MinecraftServer mcServerIn, WorldServer worldServerIn)
public void addParticle(IParticleData particleData, boolean alwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in interface IWorldEventListenerpublic void addParticle(IParticleData particleData, boolean ignoreRange, boolean minimizeLevel, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle in interface IWorldEventListenerpublic void onEntityAdded(Entity entityIn)
onEntityAdded in interface IWorldEventListenerpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in interface IWorldEventListenerpublic void playSoundToAllNearExcept(@Nullable
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(IBlockReader 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