public class WorldEventListenerAdapter
extends java.lang.Object
implements net.minecraft.world.IWorldEventListener
Constructor and Description |
---|
WorldEventListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
broadcastSound(int soundID,
net.minecraft.util.math.BlockPos pos,
int data) |
void |
markBlockRangeForRenderUpdate(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
notifyBlockUpdate(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState,
int flags) |
void |
notifyLightSet(net.minecraft.util.math.BlockPos pos) |
void |
onEntityAdded(net.minecraft.entity.Entity entity) |
void |
onEntityRemoved(net.minecraft.entity.Entity entity) |
void |
playEvent(net.minecraft.entity.player.EntityPlayer player,
int type,
net.minecraft.util.math.BlockPos blockPos,
int data) |
void |
playRecord(net.minecraft.util.SoundEvent sound,
net.minecraft.util.math.BlockPos pos) |
void |
playSoundToAllNearExcept(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.SoundEvent sound,
net.minecraft.util.SoundCategory category,
double x,
double y,
double z,
float volume,
float pitch) |
void |
sendBlockBreakProgress(int breakerId,
net.minecraft.util.math.BlockPos pos,
int progress) |
void |
spawnParticle(int id,
boolean ignoreRange,
boolean minParticles,
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(@Nonnull net.minecraft.world.World world, @Nonnull net.minecraft.util.math.BlockPos pos, @Nonnull net.minecraft.block.state.IBlockState oldState, @Nonnull net.minecraft.block.state.IBlockState newState, int flags)
notifyBlockUpdate
in interface net.minecraft.world.IWorldEventListener
public void notifyLightSet(@Nonnull net.minecraft.util.math.BlockPos pos)
notifyLightSet
in interface net.minecraft.world.IWorldEventListener
public void markBlockRangeForRenderUpdate(int x1, int y1, int z1, int x2, int y2, int z2)
markBlockRangeForRenderUpdate
in interface net.minecraft.world.IWorldEventListener
public void playSoundToAllNearExcept(@Nullable net.minecraft.entity.player.EntityPlayer player, @Nonnull net.minecraft.util.SoundEvent sound, @Nonnull net.minecraft.util.SoundCategory category, double x, double y, double z, float volume, float pitch)
playSoundToAllNearExcept
in interface net.minecraft.world.IWorldEventListener
public void playRecord(@Nonnull net.minecraft.util.SoundEvent sound, @Nonnull net.minecraft.util.math.BlockPos pos)
playRecord
in interface net.minecraft.world.IWorldEventListener
public void spawnParticle(int particleID, boolean ignoreRange, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed, @Nonnull int... parameters)
spawnParticle
in interface net.minecraft.world.IWorldEventListener
public void spawnParticle(int id, boolean ignoreRange, boolean minParticles, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, @Nonnull int... parameters)
spawnParticle
in interface net.minecraft.world.IWorldEventListener
public void onEntityAdded(@Nonnull net.minecraft.entity.Entity entity)
onEntityAdded
in interface net.minecraft.world.IWorldEventListener
public void onEntityRemoved(@Nonnull net.minecraft.entity.Entity entity)
onEntityRemoved
in interface net.minecraft.world.IWorldEventListener
public void broadcastSound(int soundID, @Nonnull net.minecraft.util.math.BlockPos pos, int data)
broadcastSound
in interface net.minecraft.world.IWorldEventListener
public void playEvent(@Nullable net.minecraft.entity.player.EntityPlayer player, int type, @Nonnull net.minecraft.util.math.BlockPos blockPos, int data)
playEvent
in interface net.minecraft.world.IWorldEventListener
public void sendBlockBreakProgress(int breakerId, @Nonnull net.minecraft.util.math.BlockPos pos, int progress)
sendBlockBreakProgress
in interface net.minecraft.world.IWorldEventListener