Contents
Class SpawnNPCInteractionFailureTracker
java.lang.Object
com.hypixel.hytale.server.npc.interactions.SpawnNPCInteractionFailureTracker
- All Implemented Interfaces:
Resource<EntityStore>, Cloneable
Remembers
SpawnNPCInteraction spawn failures per target block so repeated failures
do not flood logs. Entries are cleared when the block is broken (BreakBlockEvent).-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearFailureForBlock(org.joml.Vector3ic block) clone()booleanrecordFailure(org.joml.Vector3ic block)
-
Constructor Details
-
SpawnNPCInteractionFailureTracker
public SpawnNPCInteractionFailureTracker()
-
-
Method Details
-
getResourceType
-
recordFailure
public boolean recordFailure(@Nonnull org.joml.Vector3ic block) - Parameters:
block- the interacted block position- Returns:
trueif this is the first recorded failure atblock(caller should log)
-
clearFailureForBlock
public void clearFailureForBlock(@Nonnull org.joml.Vector3ic block) -
clone
- Specified by:
clonein interfaceResource<EntityStore>- Returns:
- a clone instance of the original resource instance.
-