public class CubeUnWatchEvent
extends net.minecraftforge.fml.common.eventhandler.Event
ICube associated with ICubeWatcher.
This event can be fired several times for a same cube during game session
for a same and for a different players.
This event may be fired even if there was no corresponding CubeWatchEvent.
This matches Forge behavior with ChunkWatchEvent.UnWatch because
UnWatch event is fired even if chunk has never been sent to players, but Watch event is fired only
after the chunk packet has been sent.
This event is fired after the corresponding unload packet has been sent to the player.
This is not an isCancelable() event.
This event is fired on the MinecraftForge.EVENT_BUS.| Constructor and Description |
|---|
CubeUnWatchEvent(ICube cubeIn,
CubePos cubePosIn,
ICubeWatcher cubeWatcherIn,
net.minecraft.entity.player.EntityPlayerMP playerIn) |
| Modifier and Type | Method and Description |
|---|---|
ICube |
getCube() |
CubePos |
getCubePos() |
ICubeWatcher |
getCubeWatcher() |
net.minecraft.entity.player.EntityPlayerMP |
getPlayer() |
ICubicWorld |
getWorld() |
boolean |
isCancelable() |
public CubeUnWatchEvent(@Nullable
ICube cubeIn,
CubePos cubePosIn,
ICubeWatcher cubeWatcherIn,
net.minecraft.entity.player.EntityPlayerMP playerIn)
@Nullable public ICube getCube()
public CubePos getCubePos()
public ICubeWatcher getCubeWatcher()
public ICubicWorld getWorld()
public net.minecraft.entity.player.EntityPlayerMP getPlayer()
public boolean isCancelable()
isCancelable in class net.minecraftforge.fml.common.eventhandler.Event