类 PacketDistributor.TargetPoint
java.lang.Object
net.minecraftforge.network.PacketDistributor.TargetPoint
- 封闭类:
- PacketDistributor<T>
-
字段概要
字段修饰符和类型字段说明private final ResourceKey<Level>
private final ServerPlayer
private final double
private final double
private final double
private final double
-
构造器概要
构造器构造器说明TargetPoint
(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 -
方法概要
修饰符和类型方法说明p
(double x, double y, double z, double r2, ResourceKey<Level> dim) Helper to build a TargetPoint without excluded Entity
-
字段详细资料
-
excluded
-
x
private final double x -
y
private final double y -
z
private final double z -
r2
private final double r2 -
dim
-
-
构造器详细资料
-
TargetPoint
public TargetPoint(ServerPlayer excluded, double x, double y, double z, double r2, ResourceKey<Level> dim) A target point with excluded entity- 参数:
excluded
- Entity to excludex
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionType
-
TargetPoint
A target point without excluded entity- 参数:
x
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionType
-
-
方法详细资料
-
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- 参数:
x
- Xy
- Yz
- Zr2
- Radiusdim
- DimensionType- 返回:
- A TargetPoint supplier
-