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