Package com.ldtteam.structurize.storage
Record Class ServerFutureProcessor.BlueprintDataProcessingData
java.lang.Object
java.lang.Record
com.ldtteam.structurize.storage.ServerFutureProcessor.BlueprintDataProcessingData
- Enclosing class:
- ServerFutureProcessor
public static record ServerFutureProcessor.BlueprintDataProcessingData(Future<byte[]> blueprintDataFuture, net.minecraft.world.level.Level level, Consumer<byte[]> consumer)
extends Record
Data to be processed.
-
Constructor Summary
ConstructorsConstructorDescriptionBlueprintDataProcessingData(Future<byte[]> blueprintDataFuture, net.minecraft.world.level.Level level, Consumer<byte[]> consumer) Creates an instance of aBlueprintDataProcessingDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionFuture<byte[]>Returns the value of theblueprintDataFuturerecord component.Consumer<byte[]>consumer()Returns the value of theconsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.Levellevel()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueprintDataProcessingData
public BlueprintDataProcessingData(Future<byte[]> blueprintDataFuture, net.minecraft.world.level.Level level, Consumer<byte[]> consumer) Creates an instance of aBlueprintDataProcessingDatarecord class.- Parameters:
blueprintDataFuture- the value for theblueprintDataFuturerecord componentlevel- the value for thelevelrecord componentconsumer- the value for theconsumerrecord 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). -
blueprintDataFuture
Returns the value of theblueprintDataFuturerecord component.- Returns:
- the value of the
blueprintDataFuturerecord component
-
level
public net.minecraft.world.level.Level level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
consumer
Returns the value of theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-