Class TargetPoint

java.lang.Object
com.pixelmonmod.pixelmon.api.util.TargetPoint

public class TargetPoint extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    TargetPoint(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 Type
    Method
    Description
    void
    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
     
    double
     
    double
     
    int
     
    net.minecraftforge.network.PacketDistributor.TargetPoint
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object