Package com.sk89q.worldedit.util
Class SideEffectSet
java.lang.Object
com.sk89q.worldedit.util.SideEffectSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SideEffectSet
api()
API-friendly side effect set.static SideEffectSet
defaults()
boolean
getState
(SideEffect effect) static SideEffectSet
none()
boolean
shouldApply
(SideEffect effect) Gets whether this side effect is not off.with
(SideEffect sideEffect) Create a newSideEffectSet
with the given side effect set to "on"with
(SideEffect sideEffect, SideEffect.State state) without
(SideEffect sideEffect) Create a newSideEffectSet
with the given side effect set to "off"
-
Constructor Details
-
SideEffectSet
-
-
Method Details
-
with
Create a newSideEffectSet
with the given side effect set to "on"- Since:
- 2.12.3
-
without
Create a newSideEffectSet
with the given side effect set to "off"- Since:
- 2.12.3
-
with
-
doesApplyAny
public boolean doesApplyAny() -
getState
-
shouldApply
Gets whether this side effect is not off.This returns whether it is either delayed or on.
- Parameters:
effect
- The side effect- Returns:
- Whether it should apply
-
getSideEffectsToApply
-
defaults
-
none
-
api
API-friendly side effect set. Sets: - Heightmaps - Lighting (if set to mode 1 or 2 in config) Does not set: - History - Neighbours - Lighting (if set to mode 0 in config- Since:
- 2.12.3
-