Class CognitiveInducerMarkComponentImpl

java.lang.Object
name.dashkal.minecraft.hexresearch.fabric.cc.CognitiveInducerMarkComponentImpl
All Implemented Interfaces:
dev.onyxstudios.cca.api.v3.component.Component, dev.onyxstudios.cca.api.v3.component.ComponentV3, CognitiveInducerMarkComponent

public class CognitiveInducerMarkComponentImpl extends Object implements CognitiveInducerMarkComponent
  • Constructor Details

    • CognitiveInducerMarkComponentImpl

      public CognitiveInducerMarkComponentImpl()
  • Method Details

    • mark

      public void mark(long gameTime)
      Description copied from interface: CognitiveInducerMarkComponent
      Marks the villager indicating that a cognitive inducer tried to take an impression.
      Specified by:
      mark in interface CognitiveInducerMarkComponent
      Parameters:
      gameTime - The current game time as per `Level.getGameTime()`
    • getMarks

      public SortedSet<Long> getMarks()
      Description copied from interface: CognitiveInducerMarkComponent
      Returns a sorted set of all marks.
      Specified by:
      getMarks in interface CognitiveInducerMarkComponent
    • pruneMarks

      public void pruneMarks(long gameTime)
      Description copied from interface: CognitiveInducerMarkComponent
      Prunes any marks older than the configured retention time.
      Specified by:
      pruneMarks in interface CognitiveInducerMarkComponent
      Parameters:
      gameTime - The current game time as per `Level.getGameTime()`
    • readFromNbt

      public void readFromNbt(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      readFromNbt in interface dev.onyxstudios.cca.api.v3.component.Component
    • writeToNbt

      public void writeToNbt(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      writeToNbt in interface dev.onyxstudios.cca.api.v3.component.Component