Class TargetedYPREffect

Direct Known Subclasses:
LineEffect

public class TargetedYPREffect extends TargetedEffect
Class used for effects that also require yaw pitch roll values Note: Roll values are currently unused and won't do anything (version 0.0.1)
  • Field Details

    • yawOffset

      public float yawOffset
    • pitchOffset

      public float pitchOffset
    • yaw

      public float yaw
    • pitch

      public float pitch
    • roll

      public float roll
    • rollOffset

      public float rollOffset
    • shouldUpdateYPR

      public boolean shouldUpdateYPR
  • Constructor Details

    • TargetedYPREffect

      public TargetedYPREffect(net.minecraft.server.world.ServerWorld world, EffectType type, net.minecraft.particle.ParticleEffect particle, net.minecraft.util.math.Vec3d originPos)
  • Method Details

    • copy

      protected static void copy(TargetedYPREffect original, TargetedYPREffect copy)
    • updatePos

      public void updatePos()
      Overrides:
      updatePos in class TargetedEffect
    • getShouldUpdateYPR

      public boolean getShouldUpdateYPR()
    • setShouldUpdateYPR

      public void setShouldUpdateYPR(boolean shouldUpdateYPR)
      Should the Yaw Pitch and Roll also be updated when updating positions?
      Parameters:
      shouldUpdateYPR - True if you want to update yaw pitch roll values
    • getYawOffset

      public float getYawOffset()
    • setYawOffset

      public void setYawOffset(float yawOffset)
    • getPitchOffset

      public float getPitchOffset()
    • setPitchOffset

      public void setPitchOffset(float pitchOffset)
    • getYaw

      public float getYaw()
    • setYaw

      public void setYaw(float yaw)
    • getPitch

      public float getPitch()
    • setPitch

      public void setPitch(float pitch)
    • getRoll

      public float getRoll()
    • setRoll

      public void setRoll(float roll)
    • getRollOffset

      public float getRollOffset()
    • setRollOffset

      public void setRollOffset(float rollOffset)
    • getDirection

      @NotNull public @NotNull net.minecraft.util.math.Vec3d getDirection()