Java Code Examples for net.minecraftforge.fml.common.network.NetworkRegistry#TargetPoint

The following examples show how to use net.minecraftforge.fml.common.network.NetworkRegistry#TargetPoint . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MCNetworkManager.java    From NOVA-Core with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void sendToAllAround(PacketAbstract message, NetworkRegistry.TargetPoint point) {
	this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
	this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(point);
	this.channelEnumMap.get(Side.SERVER).writeAndFlush(message);
}
 
Example 2
Source File: MCNetworkManager.java    From NOVA-Core with GNU Lesser General Public License v3.0 4 votes vote down vote up
public void sendToAllAround(PacketAbstract message, NetworkRegistry.TargetPoint point) {
	this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);
	this.channelEnumMap.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(point);
	this.channelEnumMap.get(Side.SERVER).writeAndFlush(message);
}
 
Example 3
Source File: NetworkHandler.java    From Signals with GNU General Public License v3.0 2 votes vote down vote up
public static void sendToAllAround(IMessage message, NetworkRegistry.TargetPoint point){

        INSTANCE.sendToAllAround(message, point);
    }
 
Example 4
Source File: LocationDoublePacket.java    From Signals with GNU General Public License v3.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world) {

        return getTargetPoint(world, 64);
    }
 
Example 5
Source File: LocationDoublePacket.java    From Signals with GNU General Public License v3.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world, double updateDistance) {

        return new NetworkRegistry.TargetPoint(world.provider.getDimension(), x, y, z, updateDistance);
    }
 
Example 6
Source File: LocationIntPacket.java    From Signals with GNU General Public License v3.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world){

        return getTargetPoint(world, 64);
    }
 
Example 7
Source File: LocationIntPacket.java    From Signals with GNU General Public License v3.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world, double updateDistance){

        return new NetworkRegistry.TargetPoint(world.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ(), updateDistance);
    }
 
Example 8
Source File: NetworkHandler.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
public static void sendToAllAround(IMessage message, NetworkRegistry.TargetPoint point){

        INSTANCE.sendToAllAround(message, point);
    }
 
Example 9
Source File: LocationDoublePacket.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world){

        return getTargetPoint(world, 64);
    }
 
Example 10
Source File: LocationDoublePacket.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world, double updateDistance){

        return new NetworkRegistry.TargetPoint(world.provider.getDimension(), x, y, z, updateDistance);
    }
 
Example 11
Source File: LocationIntPacket.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world){

        return getTargetPoint(world, 64);
    }
 
Example 12
Source File: LocationIntPacket.java    From IGW-mod with GNU General Public License v2.0 2 votes vote down vote up
public NetworkRegistry.TargetPoint getTargetPoint(World world, double updateDistance){

        return new NetworkRegistry.TargetPoint(world.provider.getDimension(), x, y, z, updateDistance);
    }