public static final class PacketDistributor.TargetPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DimensionType |
dim |
private ServerPlayerEntity |
excluded |
private double |
r2 |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
TargetPoint(double x,
double y,
double z,
double r2,
DimensionType dim)
A target point without excluded entity
|
TargetPoint(ServerPlayerEntity excluded,
double x,
double y,
double z,
double r2,
DimensionType dim)
A target point with excluded entity
|
Modifier and Type | Method and Description |
---|---|
static java.util.function.Supplier<PacketDistributor.TargetPoint> |
p(double x,
double y,
double z,
double r2,
DimensionType dim)
Helper to build a TargetPoint without excluded Entity
|
private final ServerPlayerEntity excluded
private final double x
private final double y
private final double z
private final double r2
private final DimensionType dim
public TargetPoint(ServerPlayerEntity excluded, double x, double y, double z, double r2, DimensionType dim)
excluded
- Entity to excludex
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionTypepublic TargetPoint(double x, double y, double z, double r2, DimensionType dim)
x
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionTypepublic static java.util.function.Supplier<PacketDistributor.TargetPoint> p(double x, double y, double z, double r2, DimensionType dim)
x
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionType