public interface ILocalBlockUpdateSubscriber
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.BlockPos |
getSubscriberPos()
Returns the position of the subscriber.
|
int |
getUpdateRange()
The distance from the @{BlockPos} that subscribers should be notified about updates.
|
void |
setWorldUpdated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos eventPos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState,
int flags)
Called to indicate an update happened within the listener's update range returned by the @{getUpdateRange} call.
|
net.minecraft.util.math.BlockPos getSubscriberPos()
int getUpdateRange()
void setWorldUpdated(net.minecraft.world.World world, net.minecraft.util.math.BlockPos eventPos, net.minecraft.block.state.IBlockState oldState, net.minecraft.block.state.IBlockState newState, int flags)
world
- from the block update eventeventPos
- from the block update eventoldState
- from the block update eventnewState
- from the block update eventflags
- from the block update event