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 -
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.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
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()`
-