Package net.neoforged.neoforge.network
Class PacketDistributor.TargetPoint
java.lang.Object
net.neoforged.neoforge.network.PacketDistributor.TargetPoint
- Enclosing class:
 - PacketDistributor<T>
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<Level>private final ServerPlayerprivate final doubleprivate final doubleprivate final doubleprivate final double - 
Constructor Summary
ConstructorsConstructorDescriptionTargetPoint(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
 
 
 -