Record Class BuildingMaterialProperties.Blocks

java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.plugin.builtin.wrapper.BuildingMaterialProperties.Blocks
Enclosing class:
BuildingMaterialProperties

public static record BuildingMaterialProperties.Blocks(Optional<Boolean> slab, Optional<Boolean> stairs, Optional<Boolean> fence, Optional<Boolean> fenceGate, Optional<Boolean> wall, Optional<Boolean> pressurePlate, Optional<Boolean> button, Optional<Boolean> trapdoor, Optional<Boolean> door) extends Record
  • Constructor Details

    • Blocks

      public Blocks(Optional<Boolean> slab, Optional<Boolean> stairs, Optional<Boolean> fence, Optional<Boolean> fenceGate, Optional<Boolean> wall, Optional<Boolean> pressurePlate, Optional<Boolean> button, Optional<Boolean> trapdoor, Optional<Boolean> door)
      Creates an instance of a Blocks record class.
      Parameters:
      slab - the value for the slab record component
      stairs - the value for the stairs record component
      fence - the value for the fence record component
      fenceGate - the value for the fenceGate record component
      wall - the value for the wall record component
      pressurePlate - the value for the pressurePlate record component
      button - the value for the button record component
      trapdoor - the value for the trapdoor record component
      door - the value for the door 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 Objects::equals(Object,Object).
      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.
    • slab

      public Optional<Boolean> slab()
      Returns the value of the slab record component.
      Returns:
      the value of the slab record component
    • stairs

      public Optional<Boolean> stairs()
      Returns the value of the stairs record component.
      Returns:
      the value of the stairs record component
    • fence

      public Optional<Boolean> fence()
      Returns the value of the fence record component.
      Returns:
      the value of the fence record component
    • fenceGate

      public Optional<Boolean> fenceGate()
      Returns the value of the fenceGate record component.
      Returns:
      the value of the fenceGate record component
    • wall

      public Optional<Boolean> wall()
      Returns the value of the wall record component.
      Returns:
      the value of the wall record component
    • pressurePlate

      public Optional<Boolean> pressurePlate()
      Returns the value of the pressurePlate record component.
      Returns:
      the value of the pressurePlate record component
    • button

      public Optional<Boolean> button()
      Returns the value of the button record component.
      Returns:
      the value of the button record component
    • trapdoor

      public Optional<Boolean> trapdoor()
      Returns the value of the trapdoor record component.
      Returns:
      the value of the trapdoor record component
    • door

      public Optional<Boolean> door()
      Returns the value of the door record component.
      Returns:
      the value of the door record component