Contents
Class ReputationGameplayConfig
java.lang.Object
com.hypixel.hytale.builtin.adventure.reputation.ReputationGameplayConfig
The gameplay configuration for the Reputation module.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of reputation storage. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ReputationGameplayConfig> The codec used to parseReputationGameplayConfiginstances.static final StringThe ID of the Reputation gameplay config. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReputationGameplayConfigget(GameplayConfig config) Gets theReputationGameplayConfigfrom the givenGameplayConfig, or null if it does not exist.static ReputationGameplayConfiggetOrDefault(GameplayConfig config) Gets theReputationGameplayConfigfrom the givenGameplayConfig, or the default if it does not exist.toString()
-
Field Details
-
ID
-
CODEC
The codec used to parseReputationGameplayConfiginstances.
-
-
Constructor Details
-
ReputationGameplayConfig
public ReputationGameplayConfig()
-
-
Method Details
-
get
Gets theReputationGameplayConfigfrom the givenGameplayConfig, or null if it does not exist.- Parameters:
config- the gameplay config.- Returns:
- the reputation gameplay config, or
nullif it does not exist.
-
getOrDefault
Gets theReputationGameplayConfigfrom the givenGameplayConfig, or the default if it does not exist.- Parameters:
config- the gameplay config.- Returns:
- the reputation gameplay config, or the default if it does not exist.
-
getReputationStorageType
- Returns:
- the type of reputation storage to use.
-
toString
-