Contents
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
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).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class TriggerRule
BASE_CODEC, CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractDenyRule>
BuilderCodec.Builder<T> appendDenyFields(BuilderCodec.Builder<T> builder) doublevoidsetMatchKey(String matchKey) voidsetMatchValue(String matchValue) voidsetRadius(double radius) voidMethods inherited from class TriggerRule
deepCopy, deepCopyList, isEnabled, rotateInPlace, setEnabled
-
Constructor Details
-
AbstractDenyRule
public AbstractDenyRule()
-
-
Method Details
-
appendDenyFields
@Nonnull public static <T extends AbstractDenyRule> BuilderCodec.Builder<T> appendDenyFields(@Nonnull BuilderCodec.Builder<T> builder) -
getTarget
-
setTarget
-
getMatchKey
-
setMatchKey
-
getMatchValue
-
setMatchValue
-
getRadius
public double getRadius() -
setRadius
public void setRadius(double radius) -
getSignalTags
-