Package net.minecraftforge.fml.network
Class PacketDistributor.TargetPoint
java.lang.Object
net.minecraftforge.fml.network.PacketDistributor.TargetPoint
- Enclosing class:
- PacketDistributor<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryKey<World>
private final ServerPlayerEntity
private final double
private final double
private final double
private final double
-
Constructor Summary
ConstructorDescriptionTargetPoint
(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
Modifier and TypeMethodDescriptionp
(double x, double y, double z, double r2, RegistryKey<World> dim) Helper to build a TargetPoint without excluded Entity
-
Field Details
-
excluded
-
x
private final double x -
y
private final double y -
z
private final double z -
r2
private final double r2 -
dim
-
-
Constructor Details
-
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
A target point without excluded entity- Parameters:
x
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionType
-
-
Method Details
-
p
public static 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
-