Class CodingSettings

java.lang.Object
ua.mcchickenstudio.opencreative.settings.CodingSettings

public final class CodingSettings extends Object

CodingSettings

This class represents a settings of developer's mode (/dev).
  • Constructor Details

    • CodingSettings

      public CodingSettings()
  • Method Details

    • load

      public void load()
      Loads settings of coding from configuration.
    • isDisabledEvent

      public boolean isDisabledEvent(@NotNull @NotNull Executor event)
      Checks whether executor is disabled.
      Parameters:
      event - executor to check.
      Returns:
      true - disabled, false - not.
    • isDisabledAction

      public boolean isDisabledAction(@NotNull @NotNull ActionType action)
      Checks whether action is disabled.
      Parameters:
      action - action to check.
      Returns:
      true - disabled, false - not.
    • isDisabledCondition

      public boolean isDisabledCondition(@NotNull @NotNull ActionType condition)
      Checks whether condition is disabled.
      Parameters:
      condition - condition to check.
      Returns:
      true - disabled, false - not.
    • isLegacySelectionMenu

      public boolean isLegacySelectionMenu()
      Checks whether coding should use legacy selection menu.
      Returns:
      true - will use old menu, false - not.
    • isEnabled

      public boolean isEnabled()
      Checks whether coding mode is enabled and players can enter it to develop worlds.
      Returns:
      true - enabled, false - disabled.
    • isCancelChatOnValueSet

      public boolean isCancelChatOnValueSet()
      Checks whether messages, that changed values, should be hidden for players in coding world.
      Returns:
      true - hide these messages, false - let them show.
    • getPrompterMaxExecutors

      public int getPrompterMaxExecutors()
      Returns maximum amount of event blocks for prompt handler.
      Returns:
      limit of events.
    • getPrompterTimeout

      public int getPrompterTimeout()
      Returns how much time prompt handler can think before it will cancel and fail the request.
      Returns:
      limit of thinking time.
    • isIgnoreActionsIfEntityNotInWorld

      public boolean isIgnoreActionsIfEntityNotInWorld()
      Checks whether any action will be not executed, if target entity is not in planet's world.
      Returns:
      true - all actions require entity in same world

      false - only entity and player actions.

    • getVerticalPlatformStep

      public int getVerticalPlatformStep()
      Returns Y-distance between generated vertical platforms.
      Returns:
      spacing in blocks.
    • getLegacyPlatformStep

      public int getLegacyPlatformStep()
      Returns Y-distance between generated legacy platforms.
      Returns:
      spacing in blocks.
    • getHorizontalPlatformStep

      public int getHorizontalPlatformStep()
      Returns X/Z-distance between generated horizontal platforms.
      Returns:
      spacing in blocks.
    • isVerticalPlatformNotchEnabled

      public boolean isVerticalPlatformNotchEnabled()
      Checks whether vertical platform generator should cut a side notch.
      Returns:
      true - carve notch, false - keep full floor.
    • getVerticalPlatformNotchWidth

      public int getVerticalPlatformNotchWidth()
      Returns notch width for vertical platform generator.
      Returns:
      width in blocks from platform edge.
    • isShiftBreakChainEnabled

      public boolean isShiftBreakChainEnabled()
      Checks whether sneaking block-break should remove full multi-action chain.
      Returns:
      true - enabled, false - disabled.
    • isShiftBreakChainCompactFull

      public boolean isShiftBreakChainCompactFull()
      Checks whether shift chain removal should compact entire remaining line.
      Returns:
      true - compact fully, false - single vanilla move only.
    • shouldSaveScriptsHistory

      public boolean shouldSaveScriptsHistory()
      Checks whether codeScript.yml will be copied to /plugins/OpenCreative/history/ folder.
      Returns:
      true - will be copied, false - not.