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 Summary
ConstructorsConstructorDescriptionBlocks(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 aBlocksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbutton()Returns the value of thebuttonrecord component.door()Returns the value of thedoorrecord component.final booleanIndicates whether some other object is "equal to" this one.fence()Returns the value of thefencerecord component.Returns the value of thefenceGaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepressurePlaterecord component.slab()Returns the value of theslabrecord component.stairs()Returns the value of thestairsrecord component.final StringtoString()Returns a string representation of this record class.trapdoor()Returns the value of thetrapdoorrecord component.wall()Returns the value of thewallrecord component.
-
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 aBlocksrecord class.- Parameters:
slab- the value for theslabrecord componentstairs- the value for thestairsrecord componentfence- the value for thefencerecord componentfenceGate- the value for thefenceGaterecord componentwall- the value for thewallrecord componentpressurePlate- the value for thepressurePlaterecord componentbutton- the value for thebuttonrecord componenttrapdoor- the value for thetrapdoorrecord componentdoor- the value for thedoorrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
slab
Returns the value of theslabrecord component.- Returns:
- the value of the
slabrecord component
-
stairs
Returns the value of thestairsrecord component.- Returns:
- the value of the
stairsrecord component
-
fence
Returns the value of thefencerecord component.- Returns:
- the value of the
fencerecord component
-
fenceGate
Returns the value of thefenceGaterecord component.- Returns:
- the value of the
fenceGaterecord component
-
wall
Returns the value of thewallrecord component.- Returns:
- the value of the
wallrecord component
-
pressurePlate
Returns the value of thepressurePlaterecord component.- Returns:
- the value of the
pressurePlaterecord component
-
button
Returns the value of thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-
trapdoor
Returns the value of thetrapdoorrecord component.- Returns:
- the value of the
trapdoorrecord component
-
door
Returns the value of thedoorrecord component.- Returns:
- the value of the
doorrecord component
-