001 package net.minecraftforge.event.world;
002
003 import net.minecraft.world.ChunkCoordIntPair;
004 import net.minecraft.entity.player.EntityPlayerMP;
005 import net.minecraft.server.management.PlayerInstance;
006 import net.minecraft.world.WorldServer;
007 import net.minecraftforge.event.Event;
008
009 public class ChunkWatchEvent extends Event
010 {
011 public final ChunkCoordIntPair chunk;
012 public final EntityPlayerMP player;
013
014 public ChunkWatchEvent(ChunkCoordIntPair chunk, EntityPlayerMP player)
015 {
016 this.chunk = chunk;
017 this.player = player;
018 }
019
020 public static class Watch extends ChunkWatchEvent
021 {
022 public Watch(ChunkCoordIntPair chunk, EntityPlayerMP player) { super(chunk, player); }
023 }
024
025 public static class UnWatch extends ChunkWatchEvent
026 {
027 public UnWatch(ChunkCoordIntPair chunkLocation, EntityPlayerMP player) { super(chunkLocation, player); }
028 }
029 }