Contents
Class AttitudeMap
java.lang.Object
com.hypixel.hytale.server.npc.blackboard.view.attitude.AttitudeMap
A mapping of AttitudeGroups to Attitudes towards individual role indexes.
The map is designed to be immutable for threaded use, with individual groups only ever being replaced in their entirety and only during asset reload. Removal or addition of new groups requires regenerating the whole map.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetAttitude(Ref<EntityStore> ref, int sourceRoleIndex, Ref<EntityStore> target, ComponentAccessor<EntityStore> componentAccessor) intvoidupdateAttitudeGroup(int id, AttitudeGroup group)
-
Method Details
-
getAttitude
@Nullable public Attitude getAttitude(@Nonnull Ref<EntityStore> ref, int sourceRoleIndex, @Nonnull Ref<EntityStore> target, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getAttitudeGroupCount
public int getAttitudeGroupCount() -
updateAttitudeGroup
-