Record Class FishProperties.SweetSpot

java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.registry.FishProperties.SweetSpot
Enclosing class:
FishProperties

public static record FishProperties.SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor, List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers) extends Record
  • Field Details

  • Constructor Details

    • SweetSpot

      public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor, List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers)
    • SweetSpot

      public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, int particleColor)
    • SweetSpot

      public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor)
    • SweetSpot

      public SweetSpot(net.minecraft.resources.ResourceLocation sweetSpotType, net.minecraft.resources.ResourceLocation texturePath, int size, int reward, boolean isFlip, float vanishingRate, float movingRate, int particleColor, List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers)
      Creates an instance of a SweetSpot record class.
      Parameters:
      sweetSpotType - the value for the sweetSpotType record component
      texturePath - the value for the texturePath record component
      size - the value for the size record component
      reward - the value for the reward record component
      isFlip - the value for the isFlip record component
      vanishingRate - the value for the vanishingRate record component
      movingRate - the value for the movingRate record component
      particleColor - the value for the particleColor record component
      onHitModifiers - the value for the onHitModifiers record component
  • Method Details

    • flip

      public FishProperties.SweetSpot flip()
    • vanishing

      public FishProperties.SweetSpot vanishing(float vanishingRate)
    • moving

      public FishProperties.SweetSpot moving(float movingRate)
    • withModifiers

    • 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.
    • sweetSpotType

      public net.minecraft.resources.ResourceLocation sweetSpotType()
      Returns the value of the sweetSpotType record component.
      Returns:
      the value of the sweetSpotType record component
    • texturePath

      public net.minecraft.resources.ResourceLocation texturePath()
      Returns the value of the texturePath record component.
      Returns:
      the value of the texturePath record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • reward

      public int reward()
      Returns the value of the reward record component.
      Returns:
      the value of the reward record component
    • isFlip

      public boolean isFlip()
      Returns the value of the isFlip record component.
      Returns:
      the value of the isFlip record component
    • vanishingRate

      public float vanishingRate()
      Returns the value of the vanishingRate record component.
      Returns:
      the value of the vanishingRate record component
    • movingRate

      public float movingRate()
      Returns the value of the movingRate record component.
      Returns:
      the value of the movingRate record component
    • particleColor

      public int particleColor()
      Returns the value of the particleColor record component.
      Returns:
      the value of the particleColor record component
    • onHitModifiers

      public List<Supplier<Supplier<AbstractMinigameModifier>>> onHitModifiers()
      Returns the value of the onHitModifiers record component.
      Returns:
      the value of the onHitModifiers record component