public class CubeWatchEvent
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 is fired only after the corresponding cube packet has been sent
to the player, the same as ChunkWatchEvent.Watch
This is not an isCancelable() event.
This event is fired on the MinecraftForge.EVENT_BUS.| Constructor and Description |
|---|
CubeWatchEvent(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 CubeWatchEvent(@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