Class AbstractDenyRule

java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.effect.TriggerRule
com.hypixel.hytale.builtin.triggervolumes.effect.builtin.rules.AbstractDenyRule
Direct Known Subclasses:
NoBuildRule, NoDestroyRule, NoDoorOpenRule, NoHarvestRule, NoUseRule

public abstract class AbstractDenyRule extends TriggerRule
Base for rules that veto a block action. When the action is denied the rule fires a SignalReceived event carrying the denied block position and the configured SignalKeys / SignalValues, so builders can drive their own feedback or logic at the spot the action was blocked. Target selects the receivers: SELF signals the rule's own volume, OTHER signals volumes matched by MatchKey / MatchValue within Radius of the block, and BOTH does both.

Subclasses chain appendDenyFields(BuilderCodec.Builder) into their own codec builder so the fields land on the concrete rule's entries (a shared parent codec would not, since getEntries() returns only a codec's own fields).