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
-
Field Summary
Fields inherited from interface name.dashkal.minecraft.hexresearch.fabric.cc.CognitiveInducerMarkComponent
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMarks()Returns a sorted set of all marks.voidmark(long gameTime) Marks the villager indicating that a cognitive inducer tried to take an impression.voidpruneMarks(long gameTime) Prunes any marks older than the configured retention time.voidreadFromNbt(net.minecraft.nbt.CompoundTag tag) voidwriteToNbt(net.minecraft.nbt.CompoundTag tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.onyxstudios.cca.api.v3.component.Component
equals
-
Constructor Details
-
CognitiveInducerMarkComponentImpl
public CognitiveInducerMarkComponentImpl()
-
-
Method Details
-
mark
public void mark(long gameTime) Description copied from interface:CognitiveInducerMarkComponentMarks the villager indicating that a cognitive inducer tried to take an impression.- Specified by:
markin interfaceCognitiveInducerMarkComponent- Parameters:
gameTime- The current game time as per `Level.getGameTime()`
-
getMarks
Description copied from interface:CognitiveInducerMarkComponentReturns a sorted set of all marks.- Specified by:
getMarksin interfaceCognitiveInducerMarkComponent
-
pruneMarks
public void pruneMarks(long gameTime) Description copied from interface:CognitiveInducerMarkComponentPrunes any marks older than the configured retention time.- Specified by:
pruneMarksin interfaceCognitiveInducerMarkComponent- Parameters:
gameTime- The current game time as per `Level.getGameTime()`
-
readFromNbt
public void readFromNbt(net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-
writeToNbt
public void writeToNbt(net.minecraft.nbt.CompoundTag tag) - Specified by:
writeToNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-