Package net.minecraft.server.world
Record Class OptionalChunk.ActualChunk<T>
java.lang.Object
java.lang.Record
net.minecraft.server.world.OptionalChunk.ActualChunk<T>
- Record Components:
value-
- All Implemented Interfaces:
OptionalChunk<T>
- Enclosing interface:
OptionalChunk<T>
public static record OptionalChunk.ActualChunk<T>(T value)
extends Record
implements OptionalChunk<T>
- Mappings:
Namespace Name named net/minecraft/server/world/OptionalChunk$ActualChunkintermediary net/minecraft/class_9259$class_9261official aqc$bnamed valueintermediary comp_2368official 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.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.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component.
-
-
Constructor Details
-
ActualChunk
-
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-