Package com.sk89q.worldedit.util
Class SideEffectSet
java.lang.Object
com.sk89q.worldedit.util.SideEffectSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SideEffectSetapi()API-friendly side effect set.static SideEffectSetdefaults()booleangetState(SideEffect effect) static SideEffectSetnone()booleanshouldApply(SideEffect effect) Gets whether this side effect is not off.with(SideEffect sideEffect) Create a newSideEffectSetwith the given side effect set to "on"with(SideEffect sideEffect, SideEffect.State state) without(SideEffect sideEffect) Create a newSideEffectSetwith the given side effect set to "off"
-
Constructor Details
-
SideEffectSet
-
-
Method Details
-
with
Create a newSideEffectSetwith the given side effect set to "on"- Since:
- 2.12.3
-
without
Create a newSideEffectSetwith 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
-