Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- get()
- getReputationGroupComponentType()
- changeReputation(Player, Ref, int, ComponentAccessor)
- changeReputation(Player, String, int, ComponentAccessor)
- changeReputation(World, String, int)
- getReputationValue(Store, Ref, Ref)
- getReputationValue(Store, Ref, String)
- getReputationValue(Store, Ref)
- getReputationValue(Store, String)
- getReputationRank(Store, Ref, Ref)
- getReputationRank(Store, Ref, String)
- getReputationRankFromValue(int)
- getReputationRank(Store, Ref)
- getAttitude(Store, Ref, Ref)
- getAttitude(Store, Ref)
Class ReputationPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.adventure.reputation.ReputationPlugin
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsFields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchangeReputation(Player player, Ref<EntityStore> npcRef, int value, ComponentAccessor<EntityStore> componentAccessor) intchangeReputation(Player player, String reputationGroupId, int value, ComponentAccessor<EntityStore> componentAccessor) Adds to the reputation that a player has with a faction (eg.intchangeReputation(World world, String reputationGroupId, int value) static ReputationPluginget()getAttitude(Store<EntityStore> store, Ref<EntityStore> npcRef) getAttitude(Store<EntityStore> store, Ref<EntityStore> ref, Ref<EntityStore> npc) getReputationRank(Store<EntityStore> store, Ref<EntityStore> npcRef) getReputationRank(Store<EntityStore> store, Ref<EntityStore> ref, Ref<EntityStore> npcRef) getReputationRank(Store<EntityStore> store, Ref<EntityStore> ref, String reputationGroupId) getReputationRankFromValue(int value) intgetReputationValue(Store<EntityStore> store, Ref<EntityStore> npcRef) intgetReputationValue(Store<EntityStore> store, Ref<EntityStore> playerEntityRef, Ref<EntityStore> npcEntityRef) intgetReputationValue(Store<EntityStore> store, Ref<EntityStore> playerEntityRef, String reputationGroupId) intgetReputationValue(Store<EntityStore> store, String reputationGroupId) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Field Details
-
NO_REPUTATION_GROUP
public static final int NO_REPUTATION_GROUP- See Also:
-
-
Constructor Details
-
ReputationPlugin
-
-
Method Details
-
get
-
getReputationGroupComponentType
-
changeReputation
public int changeReputation(@Nonnull Player player, @Nonnull Ref<EntityStore> npcRef, int value, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
changeReputation
public int changeReputation(@Nonnull Player player, @Nonnull String reputationGroupId, int value, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Adds to the reputation that a player has with a faction (eg. Kweebec) and returns the new reputation.- Parameters:
player- The player whose relationship with the faction will be alteredreputationGroupId- The name of the group, eg. Kweebec to be modifiedvalue- The value to increment the current reputation bycomponentAccessor- TheComponentAccessor<EntityStore>for component access.- Returns:
- the new reputation value
-
changeReputation
-
getReputationValue
public int getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> playerEntityRef, @Nonnull Ref<EntityStore> npcEntityRef) -
getReputationValue
public int getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> playerEntityRef, @Nonnull String reputationGroupId) -
getReputationValue
-
getReputationValue
-
getReputationRank
@Nullable public ReputationRank getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> npcRef) -
getReputationRank
@Nullable public ReputationRank getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull String reputationGroupId) -
getReputationRankFromValue
-
getReputationRank
@Nullable public ReputationRank getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef) -
getAttitude
@Nullable public Attitude getAttitude(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> npc) -
getAttitude
@Nullable public Attitude getAttitude(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef)
-