Package net.minecraft.server.world
Record Class OptionalChunk.LoadFailure<T>
java.lang.Object
java.lang.Record
net.minecraft.server.world.OptionalChunk.LoadFailure<T>
- Record Components:
error-
- All Implemented Interfaces:
OptionalChunk<T>
- Enclosing interface:
OptionalChunk<T>
public static record OptionalChunk.LoadFailure<T>(Supplier<String> error)
extends Record
implements OptionalChunk<T>
- Mappings:
Namespace Name named net/minecraft/server/world/OptionalChunk$LoadFailureintermediary net/minecraft/class_9259$class_9260official aqc$anamed errorintermediary comp_2367official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.world.OptionalChunk
OptionalChunk.ActualChunk<T>, OptionalChunk.LoadFailure<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.getError()final inthashCode()Returns a hash code value for this object.boolean<R> OptionalChunk<R> orElseThrow(Supplier<E> exceptionSupplier) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
error
The field for theerrorrecord component.
-
-
Constructor Details
-
LoadFailure
-
-
Method Details
-
isPresent
public boolean isPresent()- Specified by:
isPresentin interfaceOptionalChunk<T>- Mappings:
Namespace Name Mixin selector named isPresentLnet/minecraft/server/world/OptionalChunk;isPresent()Zintermediary method_57122Lnet/minecraft/class_9259;method_57122()Zofficial aLaqc;a()Z
-
orElse
- Specified by:
orElsein interfaceOptionalChunk<T>- Mappings:
Namespace Name Mixin selector named orElseLnet/minecraft/server/world/OptionalChunk;orElse(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_57130Lnet/minecraft/class_9259;method_57130(Ljava/lang/Object;)Ljava/lang/Object;official bLaqc;b(Ljava/lang/Object;)Ljava/lang/Object;
-
getError
- Specified by:
getErrorin interfaceOptionalChunk<T>- Mappings:
Namespace Name Mixin selector named getErrorLnet/minecraft/server/world/OptionalChunk;getError()Ljava/lang/String;intermediary method_57129Lnet/minecraft/class_9259;method_57129()Ljava/lang/String;official bLaqc;b()Ljava/lang/String;
-
ifPresent
- Specified by:
ifPresentin interfaceOptionalChunk<T>- Mappings:
Namespace Name Mixin selector named ifPresentLnet/minecraft/server/world/OptionalChunk;ifPresent(Ljava/util/function/Consumer;)Lnet/minecraft/server/world/OptionalChunk;intermediary method_57126Lnet/minecraft/class_9259;method_57126(Ljava/util/function/Consumer;)Lnet/minecraft/class_9259;official aLaqc;a(Ljava/util/function/Consumer;)Laqc;
-
map
- Specified by:
mapin interfaceOptionalChunk<T>- Mappings:
Namespace Name Mixin selector named mapLnet/minecraft/server/world/OptionalChunk;map(Ljava/util/function/Function;)Lnet/minecraft/server/world/OptionalChunk;intermediary method_57127Lnet/minecraft/class_9259;method_57127(Ljava/util/function/Function;)Lnet/minecraft/class_9259;official aLaqc;a(Ljava/util/function/Function;)Laqc;
-
orElseThrow
- Specified by:
orElseThrowin interfaceOptionalChunk<T>- Throws:
E- Mappings:
Namespace Name Mixin selector named orElseThrowLnet/minecraft/server/world/OptionalChunk;orElseThrow(Ljava/util/function/Supplier;)Ljava/lang/Object;intermediary method_57132Lnet/minecraft/class_9259;method_57132(Ljava/util/function/Supplier;)Ljava/lang/Object;official bLaqc;b(Ljava/util/function/Supplier;)Ljava/lang/Object;
-
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). -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-