Record Class MineTargetView

java.lang.Object
java.lang.Record
me.hackware.api.mining.MineTargetView
Record Components:
pos - the block position
phase - which pipeline slot holds the block
progress - accumulated break progress 0.0–1.0 (0.0 for queued blocks that haven't started)
source - what requested the break
owner - the ownership tag given on the request, or null for untagged requests (manual mining, built-in modules)
fromQueue - true when the block was fed from a queue rather than requested directly

public record MineTargetView(net.minecraft.core.BlockPos pos, MinePhase phase, double progress, me.hackware.client.modules.categories.player.SilentMine.MineSource source, String owner, boolean fromQueue) extends Record
Immutable snapshot of a block tracked by the mining pipeline. Handed out by MiningManager instead of the live internal target, so holding one across ticks never observes (or corrupts) in-flight mining state.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MineTargetView(net.minecraft.core.BlockPos pos, MinePhase phase, double progress, me.hackware.client.modules.categories.player.SilentMine.MineSource source, String owner, boolean fromQueue)
    Creates an instance of a MineTargetView record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the fromQueue record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the owner record component.
    Returns the value of the phase record component.
    net.minecraft.core.BlockPos
    pos()
    Returns the value of the pos record component.
    double
    Returns the value of the progress record component.
    me.hackware.client.modules.categories.player.SilentMine.MineSource
    Returns the value of the source record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MineTargetView

      public MineTargetView(net.minecraft.core.BlockPos pos, MinePhase phase, double progress, me.hackware.client.modules.categories.player.SilentMine.MineSource source, String owner, boolean fromQueue)
      Creates an instance of a MineTargetView record class.
      Parameters:
      pos - the value for the pos record component
      phase - the value for the phase record component
      progress - the value for the progress record component
      source - the value for the source record component
      owner - the value for the owner record component
      fromQueue - the value for the fromQueue record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pos

      public net.minecraft.core.BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • phase

      public MinePhase phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • progress

      public double progress()
      Returns the value of the progress record component.
      Returns:
      the value of the progress record component
    • source

      public me.hackware.client.modules.categories.player.SilentMine.MineSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • fromQueue

      public boolean fromQueue()
      Returns the value of the fromQueue record component.
      Returns:
      the value of the fromQueue record component