Search in sources :

Example 1 with EnumSimplePacket

use of micdoodle8.mods.galacticraft.core.network.PacketSimple.EnumSimplePacket in project Galacticraft by micdoodle8.

the class GCCoreUtil method sendToAllDimensions.

public static void sendToAllDimensions(EnumSimplePacket packetType, Object[] data) {
    for (WorldServer world : GCCoreUtil.getWorldServerList()) {
        int id = getDimensionID(world);
        GalacticraftCore.packetPipeline.sendToDimension(new PacketSimple(packetType, id, data), id);
    }
}
Also used : PacketSimple(micdoodle8.mods.galacticraft.core.network.PacketSimple) WorldServer(net.minecraft.world.WorldServer)

Aggregations

PacketSimple (micdoodle8.mods.galacticraft.core.network.PacketSimple)1 WorldServer (net.minecraft.world.WorldServer)1