Record Class ViaFabricPlusMappingDataLoader.Material

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.protocoltranslator.impl.ViaFabricPlusMappingDataLoader.Material
Enclosing class:
ViaFabricPlusMappingDataLoader

public static record ViaFabricPlusMappingDataLoader.Material(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Material(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid)
    Creates an instance of a Material record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the blocksLight record component.
    boolean
    Returns the value of the blocksMovement record component.
    boolean
    Returns the value of the burnable record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the liquid record component.
    boolean
    Returns the value of the replaceable record component.
    boolean
    Returns the value of the solid 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

    • Material

      public Material(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid)
      Creates an instance of a Material record class.
      Parameters:
      blocksMovement - the value for the blocksMovement record component
      burnable - the value for the burnable record component
      liquid - the value for the liquid record component
      blocksLight - the value for the blocksLight record component
      replaceable - the value for the replaceable record component
      solid - the value for the solid 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. All components in this record class 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.
    • blocksMovement

      public boolean blocksMovement()
      Returns the value of the blocksMovement record component.
      Returns:
      the value of the blocksMovement record component
    • burnable

      public boolean burnable()
      Returns the value of the burnable record component.
      Returns:
      the value of the burnable record component
    • liquid

      public boolean liquid()
      Returns the value of the liquid record component.
      Returns:
      the value of the liquid record component
    • blocksLight

      public boolean blocksLight()
      Returns the value of the blocksLight record component.
      Returns:
      the value of the blocksLight record component
    • replaceable

      public boolean replaceable()
      Returns the value of the replaceable record component.
      Returns:
      the value of the replaceable record component
    • solid

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