Class SideEffectSet

java.lang.Object
com.sk89q.worldedit.util.SideEffectSet

public class SideEffectSet extends Object
  • Constructor Details

  • Method Details

    • with

      public SideEffectSet with(SideEffect sideEffect)
      Create a new SideEffectSet with the given side effect set to "on"
      Since:
      2.12.3
    • without

      public SideEffectSet without(SideEffect sideEffect)
      Create a new SideEffectSet with the given side effect set to "off"
      Since:
      2.12.3
    • with

      public SideEffectSet with(SideEffect sideEffect, SideEffect.State state)
    • doesApplyAny

      public boolean doesApplyAny()
    • getState

      public SideEffect.State getState(SideEffect effect)
    • shouldApply

      public boolean shouldApply(SideEffect effect)
      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

      public Set<SideEffect> getSideEffectsToApply()
    • defaults

      public static SideEffectSet defaults()
    • none

      public static SideEffectSet none()
    • api

      public static SideEffectSet 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