Interface CognitiveInducerMarkComponent

All Superinterfaces:
dev.onyxstudios.cca.api.v3.component.Component, dev.onyxstudios.cca.api.v3.component.ComponentV3
All Known Implementing Classes:
CognitiveInducerMarkComponentImpl

public interface CognitiveInducerMarkComponent extends dev.onyxstudios.cca.api.v3.component.ComponentV3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a sorted set of all marks.
    void
    mark(long gameTime)
    Marks the villager indicating that a cognitive inducer tried to take an impression.
    void
    pruneMarks(long gameTime)
    Prunes any marks older than the configured retention time.

    Methods inherited from interface dev.onyxstudios.cca.api.v3.component.Component

    equals, readFromNbt, writeToNbt
  • Field Details

    • ID

      static final net.minecraft.resources.ResourceLocation ID
  • Method Details

    • mark

      void mark(long gameTime)
      Marks the villager indicating that a cognitive inducer tried to take an impression.
      Parameters:
      gameTime - The current game time as per `Level.getGameTime()`
    • getMarks

      SortedSet<Long> getMarks()
      Returns a sorted set of all marks.
    • pruneMarks

      void pruneMarks(long gameTime)
      Prunes any marks older than the configured retention time.
      Parameters:
      gameTime - The current game time as per `Level.getGameTime()`