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