Record Class FallingLeafUtil.LeafParticleData

java.lang.Object
java.lang.Record
net.frozenblock.wilderwild.block.impl.FallingLeafUtil.LeafParticleData
Enclosing class:
FallingLeafUtil

public static record FallingLeafUtil.LeafParticleData(net.minecraft.world.level.block.Block leavesBlock, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    LeafParticleData(net.minecraft.world.level.block.Block leavesBlock, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale)
    Creates an instance of a LeafParticleData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the frequencyModifier record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.world.level.block.Block
    Returns the value of the leavesBlock record component.
    float
    Returns the value of the particleChance record component.
    float
    Returns the value of the particleGravityScale record component.
    float
    Returns the value of the quadSize 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

    • LeafParticleData

      public LeafParticleData(net.minecraft.world.level.block.Block leavesBlock, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale)
      Creates an instance of a LeafParticleData record class.
      Parameters:
      leavesBlock - the value for the leavesBlock record component
      particleChance - the value for the particleChance record component
      frequencyModifier - the value for the frequencyModifier record component
      quadSize - the value for the quadSize record component
      particleGravityScale - the value for the particleGravityScale 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.
    • leavesBlock

      public net.minecraft.world.level.block.Block leavesBlock()
      Returns the value of the leavesBlock record component.
      Returns:
      the value of the leavesBlock record component
    • particleChance

      public float particleChance()
      Returns the value of the particleChance record component.
      Returns:
      the value of the particleChance record component
    • frequencyModifier

      public Supplier<Double> frequencyModifier()
      Returns the value of the frequencyModifier record component.
      Returns:
      the value of the frequencyModifier record component
    • quadSize

      public float quadSize()
      Returns the value of the quadSize record component.
      Returns:
      the value of the quadSize record component
    • particleGravityScale

      public float particleGravityScale()
      Returns the value of the particleGravityScale record component.
      Returns:
      the value of the particleGravityScale record component