public class PathWorldListener extends java.lang.Object implements IWorldEventListener
| Constructor and Description |
|---|
PathWorldListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastSound(int soundID,
BlockPos pos,
int data) |
protected boolean |
didBlockChange(World worldIn,
BlockPos pos,
IBlockState oldState,
IBlockState newState) |
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 id,
boolean ignoreRange,
boolean p_190570_3_,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
void |
spawnParticle(int particleID,
boolean ignoreRange,
double xCoord,
double yCoord,
double zCoord,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters) |
public void notifyBlockUpdate(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState, int flags)
notifyBlockUpdate in interface IWorldEventListenerprotected boolean didBlockChange(World worldIn, BlockPos pos, IBlockState oldState, IBlockState newState)
public void notifyLightSet(BlockPos pos)
notifyLightSet in interface IWorldEventListenerpublic void markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
markBlockRangeForRenderUpdate 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 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 id,
boolean ignoreRange,
boolean p_190570_3_,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed,
int... parameters)
spawnParticle in interface IWorldEventListenerpublic void onEntityAdded(Entity entityIn)
onEntityAdded in interface IWorldEventListenerpublic void onEntityRemoved(Entity entityIn)
onEntityRemoved in interface IWorldEventListenerpublic void playRecord(SoundEvent soundIn, BlockPos pos)
playRecord in interface IWorldEventListenerpublic void broadcastSound(int soundID,
BlockPos pos,
int data)
broadcastSound in interface IWorldEventListenerpublic void playEvent(EntityPlayer player, int type, BlockPos blockPosIn, int data)
playEvent in interface IWorldEventListenerpublic void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
sendBlockBreakProgress in interface IWorldEventListener