Contents
Class TransactionRecord
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.transaction.TransactionRecord
- Direct Known Subclasses:
KillTaskTransaction, RegistrationTransactionRecord, SpawnEntityTransactionRecord, UseEntityTransactionRecord, WorldTransactionRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<TransactionRecord> static final CodecMapCodec<TransactionRecord> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends TransactionRecord>
TransactionRecord[]appendFailedTransaction(TransactionRecord[] transactions, T transaction, String reason) static <T extends TransactionRecord>
TransactionRecord[]appendTransaction(TransactionRecord[] transactions, T transaction) abstract voidcomplete()Called when an objective task set has been completedcom.hypixel.hytale.builtin.adventure.objectives.transaction.TransactionStatusabstract voidrevert()Called when a transaction failed when setting up the objective task setabstract booleantoString()abstract voidunload()Called when the objective is unloaded from the objective system
-
Field Details
-
CODEC
-
BASE_CODEC
-
-
Constructor Details
-
TransactionRecord
public TransactionRecord()
-
-
Method Details
-
getStatus
public com.hypixel.hytale.builtin.adventure.objectives.transaction.TransactionStatus getStatus() -
revert
public abstract void revert()Called when a transaction failed when setting up the objective task set -
complete
public abstract void complete()Called when an objective task set has been completed -
unload
public abstract void unload()Called when the objective is unloaded from the objective system -
shouldBeSerialized
public abstract boolean shouldBeSerialized() -
fail
-
toString
-
appendTransaction
@Nonnull public static <T extends TransactionRecord> TransactionRecord[] appendTransaction(@Nullable TransactionRecord[] transactions, @Nonnull T transaction) -
appendFailedTransaction
@Nonnull public static <T extends TransactionRecord> TransactionRecord[] appendFailedTransaction(@Nullable TransactionRecord[] transactions, @Nonnull T transaction, String reason)
-