Record Class FoliosStructures.Known
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.FoliosStructures.Known
- Enclosing class:
FoliosStructures
public static record FoliosStructures.Known(int status, Map<net.minecraft.core.BlockPos, BlockChoice> blocks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionKnown(int status, Map<net.minecraft.core.BlockPos, BlockChoice> blocks) Creates an instance of aKnownrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<net.minecraft.core.BlockPos, BlockChoice> blocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Known
Creates an instance of aKnownrecord class.- Parameters:
status- the value for thestatusrecord componentblocks- the value for theblocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-