Search in sources :

Example 1 with TargetChunkEvent

use of org.spongepowered.api.event.world.chunk.TargetChunkEvent in project SpongeForge by SpongePowered.

the class SpongeForgeEventFactory method createChunkEvent.

public static ChunkEvent createChunkEvent(Event event) {
    TargetChunkEvent spongeEvent = (TargetChunkEvent) event;
    ChunkEvent forgeEvent = new ChunkEvent(((net.minecraft.world.chunk.Chunk) spongeEvent.getTargetChunk()));
    return forgeEvent;
}
Also used : TargetChunkEvent(org.spongepowered.api.event.world.chunk.TargetChunkEvent) ChunkEvent(net.minecraftforge.event.world.ChunkEvent) TargetChunkEvent(org.spongepowered.api.event.world.chunk.TargetChunkEvent) LoadChunkEvent(org.spongepowered.api.event.world.chunk.LoadChunkEvent) UnloadChunkEvent(org.spongepowered.api.event.world.chunk.UnloadChunkEvent) PopulateChunkEvent(net.minecraftforge.event.terraingen.PopulateChunkEvent) Chunk(org.spongepowered.api.world.Chunk)

Aggregations

PopulateChunkEvent (net.minecraftforge.event.terraingen.PopulateChunkEvent)1 ChunkEvent (net.minecraftforge.event.world.ChunkEvent)1 LoadChunkEvent (org.spongepowered.api.event.world.chunk.LoadChunkEvent)1 TargetChunkEvent (org.spongepowered.api.event.world.chunk.TargetChunkEvent)1 UnloadChunkEvent (org.spongepowered.api.event.world.chunk.UnloadChunkEvent)1 Chunk (org.spongepowered.api.world.Chunk)1