Class ItemAttitudeMap

java.lang.Object
com.hypixel.hytale.server.npc.blackboard.view.attitude.ItemAttitudeMap

public class ItemAttitudeMap extends Object
A mapping of ItemAttitudeGroups to Attitudes towards individual item BlockTypeKeys.

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. Created on 16/09/2020

  • Method Details

    • getAttitude

      @Nullable public Attitude getAttitude(int group, @Nullable ItemStack item)
    • getAttitudeGroupCount

      public int getAttitudeGroupCount()
    • updateAttitudeGroup

      public void updateAttitudeGroup(int id, @Nonnull ItemAttitudeGroup group)