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$ActualChunk
intermediary net/minecraft/class_9259$class_9261
official aqc$b
named value
intermediary comp_2368
official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.world.OptionalChunk
OptionalChunk.ActualChunk<T>, OptionalChunk.LoadFailure<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getError()
final int
hashCode()
Returns a hash code value for this object.boolean
<R> OptionalChunk
<R> orElseThrow
(Supplier<E> exceptionSupplier) final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component.
-
-
Constructor Details
-
ActualChunk
-
-
Method Details
-
isPresent
public boolean isPresent()- Specified by:
isPresent
in interfaceOptionalChunk<T>
- Mappings:
Namespace Name Mixin selector named isPresent
Lnet/minecraft/server/world/OptionalChunk;isPresent()Z
intermediary method_57122
Lnet/minecraft/class_9259;method_57122()Z
official a
Laqc;a()Z
-
orElse
- Specified by:
orElse
in interfaceOptionalChunk<T>
- Mappings:
Namespace Name Mixin selector named orElse
Lnet/minecraft/server/world/OptionalChunk;orElse(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_57130
Lnet/minecraft/class_9259;method_57130(Ljava/lang/Object;)Ljava/lang/Object;
official b
Laqc;b(Ljava/lang/Object;)Ljava/lang/Object;
-
getError
- Specified by:
getError
in interfaceOptionalChunk<T>
- Mappings:
Namespace Name Mixin selector named getError
Lnet/minecraft/server/world/OptionalChunk;getError()Ljava/lang/String;
intermediary method_57129
Lnet/minecraft/class_9259;method_57129()Ljava/lang/String;
official b
Laqc;b()Ljava/lang/String;
-
ifPresent
- Specified by:
ifPresent
in interfaceOptionalChunk<T>
- Mappings:
Namespace Name Mixin selector named ifPresent
Lnet/minecraft/server/world/OptionalChunk;ifPresent(Ljava/util/function/Consumer;)Lnet/minecraft/server/world/OptionalChunk;
intermediary method_57126
Lnet/minecraft/class_9259;method_57126(Ljava/util/function/Consumer;)Lnet/minecraft/class_9259;
official a
Laqc;a(Ljava/util/function/Consumer;)Laqc;
-
map
- Specified by:
map
in interfaceOptionalChunk<T>
- Mappings:
Namespace Name Mixin selector named map
Lnet/minecraft/server/world/OptionalChunk;map(Ljava/util/function/Function;)Lnet/minecraft/server/world/OptionalChunk;
intermediary method_57127
Lnet/minecraft/class_9259;method_57127(Ljava/util/function/Function;)Lnet/minecraft/class_9259;
official a
Laqc;a(Ljava/util/function/Function;)Laqc;
-
orElseThrow
- Specified by:
orElseThrow
in interfaceOptionalChunk<T>
- Throws:
E
- Mappings:
Namespace Name Mixin selector named orElseThrow
Lnet/minecraft/server/world/OptionalChunk;orElseThrow(Ljava/util/function/Supplier;)Ljava/lang/Object;
intermediary method_57132
Lnet/minecraft/class_9259;method_57132(Ljava/util/function/Supplier;)Ljava/lang/Object;
official b
Laqc;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 thevalue
record component.- Returns:
- the value of the
value
record component
-