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
FieldsModifier and TypeFieldDescriptionprivate static ReputationPluginprivate intprivate intstatic final intprivate List<ReputationRank> Fields inherited from class com.hypixel.hytale.server.core.plugin.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) intchangeReputation(World world, String reputationGroupId, int value) private intcomputeReputation(it.unimi.dsi.fastutil.objects.Object2IntMap<String> reputationData, ReputationGroup reputationGroup, 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) private intgetReputationValueForGroup(it.unimi.dsi.fastutil.objects.Object2IntMap<String> reputationData, ReputationGroup reputationGroup) protected voidsetup()protected voidstart()Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown, shutdown0, withConfig, withConfig
-
Field Details
-
instance
-
reputationGroupComponentType
-
reputationDataResourceType
-
reputationRanks
-
maxReputationValue
private int maxReputationValue -
minReputationValue
private int minReputationValue -
NO_REPUTATION_GROUP
public static final int NO_REPUTATION_GROUP- See Also:
-
-
Constructor Details
-
ReputationPlugin
-
-
Method Details
-
get
-
getReputationGroupComponentType
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
start
protected void start()- Overrides:
startin classPluginBase
-
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) -
changeReputation
-
computeReputation
private int computeReputation(@Nonnull it.unimi.dsi.fastutil.objects.Object2IntMap<String> reputationData, @Nonnull ReputationGroup reputationGroup, int value) -
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
-
getReputationValueForGroup
private int getReputationValueForGroup(@Nonnull it.unimi.dsi.fastutil.objects.Object2IntMap<String> reputationData, @Nonnull ReputationGroup reputationGroup) -
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)
-