Package net.minecraftforge.fml.network
Class PacketDistributor.TargetPoint
- java.lang.Object
-
- net.minecraftforge.fml.network.PacketDistributor.TargetPoint
-
- Enclosing class:
- PacketDistributor<T>
public static final class PacketDistributor.TargetPoint extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<World>dimprivate ServerPlayerEntityexcludedprivate doubler2private doublexprivate doubleyprivate doublez
-
Constructor Summary
Constructors Constructor Description TargetPoint(double x, double y, double z, double r2, RegistryKey<World> dim)A target point without excluded entityTargetPoint(ServerPlayerEntity excluded, double x, double y, double z, double r2, RegistryKey<World> dim)A target point with excluded entity
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Supplier<PacketDistributor.TargetPoint>p(double x, double y, double z, double r2, RegistryKey<World> dim)Helper to build a TargetPoint without excluded Entity
-
-
-
Field Detail
-
excluded
private final ServerPlayerEntity excluded
-
x
private final double x
-
y
private final double y
-
z
private final double z
-
r2
private final double r2
-
dim
private final RegistryKey<World> dim
-
-
Constructor Detail
-
TargetPoint
public TargetPoint(ServerPlayerEntity excluded, double x, double y, double z, double r2, RegistryKey<World> dim)
A target point with excluded entity- Parameters:
excluded- Entity to excludex- Xy- Yz- Zr2- Radiusdim- DimensionType
-
TargetPoint
public TargetPoint(double x, double y, double z, double r2, RegistryKey<World> dim)A target point without excluded entity- Parameters:
x- Xy- Yz- Zr2- Radiusdim- DimensionType
-
-
Method Detail
-
p
public static java.util.function.Supplier<PacketDistributor.TargetPoint> p(double x, double y, double z, double r2, RegistryKey<World> dim)
Helper to build a TargetPoint without excluded Entity- Parameters:
x- Xy- Yz- Zr2- Radiusdim- DimensionType- Returns:
- A TargetPoint supplier
-
-