Record Class PendingResponse<Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.PendingResponse<Result>
- Record Components:
method-resultFuture-timeoutTime-
public record PendingResponse<Result>(RegistryEntry.Reference<? extends OutgoingRpcMethod<?,? extends Result>> method, CompletableFuture<Result> resultFuture, long timeoutTime)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/PendingResponseintermediary net/minecraft/class_11815official atrnamed methodintermediary comp_4673official anamed resultFutureintermediary comp_4674official bnamed timeoutTimeintermediary comp_4675official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry.Reference<? extends OutgoingRpcMethod<?, ? extends Result>> The field for themethodrecord component.private final CompletableFuture<Result> The field for theresultFuturerecord component.private final longThe field for thetimeoutTimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPendingResponse(RegistryEntry.Reference<? extends OutgoingRpcMethod<?, ? extends Result>> reference, CompletableFuture<Result> completableFuture, long long2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidhandleResponse(JsonElement result) final inthashCode()Returns a hash code value for this object.RegistryEntry.Reference<? extends OutgoingRpcMethod<?, ? extends Result>> method()Returns the value of themethodrecord component.Returns the value of theresultFuturerecord component.booleanshouldTimeout(long time) longReturns the value of thetimeoutTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
method
The field for themethodrecord component. -
resultFuture
The field for theresultFuturerecord component. -
timeoutTime
private final long timeoutTimeThe field for thetimeoutTimerecord component.
-
-
Constructor Details
-
PendingResponse
public PendingResponse(RegistryEntry.Reference<? extends OutgoingRpcMethod<?, ? extends Result>> reference, CompletableFuture<Result> completableFuture, long long2)
-
-
Method Details
-
handleResponse
- Mappings:
Namespace Name Mixin selector named handleResponseLnet/minecraft/server/dedicated/management/PendingResponse;handleResponse(Lcom/google/gson/JsonElement;)Vintermediary method_73697Lnet/minecraft/class_11815;method_73697(Lcom/google/gson/JsonElement;)Vofficial aLatr;a(Lcom/google/gson/JsonElement;)V
-
shouldTimeout
public boolean shouldTimeout(long time) - Mappings:
Namespace Name Mixin selector named shouldTimeoutLnet/minecraft/server/dedicated/management/PendingResponse;shouldTimeout(J)Zintermediary method_73696Lnet/minecraft/class_11815;method_73696(J)Zofficial aLatr;a(J)Z
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
resultFuture
Returns the value of theresultFuturerecord component.- Returns:
- the value of the
resultFuturerecord component
-
timeoutTime
public long timeoutTime()Returns the value of thetimeoutTimerecord component.- Returns:
- the value of the
timeoutTimerecord component
-