ReputationPlugin
Package: com.hypixel.hytale.builtin.adventure.reputation
public class ReputationPlugin extends JavaPluginPlugin class that registers components, systems, and commands for the Reputation subsystem.
Constants
Section titled “Constants”| Modifier | Type | Name | Value |
|---|---|---|---|
public static final | int | NO_REPUTATION_GROUP | Integer.MIN_VALUE |
Fields
Section titled “Fields”| Modifier | Type | Name | Default |
|---|---|---|---|
private static | ReputationPlugin | instance | |
private | ComponentType<EntityStore, ReputationGroupComponent> | reputationGroupComponentType | |
private | ResourceType<EntityStore, ReputationDataResource> | reputationDataResourceType | |
private | List<ReputationRank> | reputationRanks | |
private | int | maxReputationValue | Integer.MIN_VALUE |
private | int | minReputationValue | Integer.MAX_VALUE |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | ReputationPlugin(@Nonnull JavaPluginInit init) | |
public static | ReputationPlugin | get() |
public | ComponentType<EntityStore, ReputationGroupComponent> | getReputationGroupComponentType() |
@Override protected | void | setup() |
@Override protected | void | start() |
public | int | changeReputation(@Nonnull Player player, @Nonnull Ref<EntityStore> npcRef, int value, @Nonnull ComponentAccessor<EntityStore> componentAccessor) |
public | int | changeReputation(@Nonnull Player player, @Nonnull String reputationGroupId, int value, @Nonnull ComponentAccessor<EntityStore> componentAccessor) |
public | int | changeReputation(@Nonnull World world, @Nonnull String reputationGroupId, int value) |
private | int | computeReputation(@Nonnull Object2IntMap<String> reputationData, @Nonnull ReputationGroup reputationGroup, int value) |
public | int | getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> playerEntityRef, @Nonnull Ref<EntityStore> npcEntityRef) |
public | int | getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> playerEntityRef, @Nonnull String reputationGroupId) |
public | int | getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef) |
public | int | getReputationValue(@Nonnull Store<EntityStore> store, @Nonnull String reputationGroupId) |
private | int | getReputationValueForGroup(@Nonnull Object2IntMap<String> reputationData, @Nonnull ReputationGroup reputationGroup) |
@Nullable public | ReputationRank | getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> npcRef) |
@Nullable public | ReputationRank | getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull String reputationGroupId) |
@Nullable public | ReputationRank | getReputationRankFromValue(int value) |
@Nullable public | ReputationRank | getReputationRank(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef) |
@Nullable public | Attitude | getAttitude(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> npc) |
@Nullable public | Attitude | getAttitude(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.