Class TargetPoint
java.lang.Object
com.pixelmonmod.pixelmon.api.util.TargetPoint
-
Constructor Summary
ConstructorDescriptionTargetPoint
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, double x, double y, double z, double radius) TargetPoint
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, double radius) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(net.minecraft.network.FriendlyByteBuf buffer) void
encode
(net.minecraft.network.FriendlyByteBuf buffer) boolean
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
double
double
getX()
double
getY()
double
getZ()
int
hashCode()
net.minecraftforge.network.PacketDistributor.TargetPoint
toMojang()
-
Constructor Details
-
TargetPoint
public TargetPoint(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension, double x, double y, double z, double radius) -
TargetPoint
public TargetPoint(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, double radius) -
TargetPoint
public TargetPoint()
-
-
Method Details
-
getDimension
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getRadius
public double getRadius() -
toMojang
public net.minecraftforge.network.PacketDistributor.TargetPoint toMojang() -
encode
public void encode(net.minecraft.network.FriendlyByteBuf buffer) -
decode
public void decode(net.minecraft.network.FriendlyByteBuf buffer) -
equals
-
hashCode
public int hashCode()
-