use of org.spongepowered.api.event.world.chunk.UnloadChunkEvent in project SpongeForge by SpongePowered.
the class SpongeForgeEventFactory method callChunkUnloadEvent.
private static UnloadChunkEvent callChunkUnloadEvent(Event event) {
UnloadChunkEvent spongeEvent = (UnloadChunkEvent) event;
final net.minecraft.world.chunk.Chunk chunk = (net.minecraft.world.chunk.Chunk) spongeEvent.getTargetChunk();
((IMixinEventBus) MinecraftForge.EVENT_BUS).post(new ChunkEvent.Unload(chunk), true);
return spongeEvent;
}
use of org.spongepowered.api.event.world.chunk.UnloadChunkEvent in project SpongeForge by SpongePowered.
the class SpongeForgeEventFactory method createChunkUnloadEvent.
public static ChunkEvent.Unload createChunkUnloadEvent(Event event) {
UnloadChunkEvent spongeEvent = (UnloadChunkEvent) event;
ChunkEvent.Unload forgeEvent = new ChunkEvent.Unload(((net.minecraft.world.chunk.Chunk) spongeEvent.getTargetChunk()));
return forgeEvent;
}
Aggregations