Class CreativeSettingsAction


  • public class CreativeSettingsAction
    extends Action
    CreativeSettings is an Action to change the abilities of the user in creative mode.
    • Field Detail

      • moveCam

        public boolean moveCam
        allows user to move the cam origin
      • rotateCam

        public boolean rotateCam
        allows user to rotate the cam around the origin
      • zoomCam

        public boolean zoomCam
        allows user to zoom the cam
      • tilePopup

        public boolean tilePopup
        allows user to open tile info / settings popup on user click
      • placeTiles

        public boolean placeTiles
        allows user to place tiles
      • removeTiles

        public boolean removeTiles
        allows user to remove tiles
      • changeInv

        public boolean changeInv
        allow user to open inventory and change inventory content
      • showInvSlots

        public boolean showInvSlots
        show inventory slots
    • Constructor Detail

      • CreativeSettingsAction

        public CreativeSettingsAction()
        Creates a default creative settings class. Can be send to change the abilities of the users in creative mode.
      • CreativeSettingsAction

        public CreativeSettingsAction​(boolean moveCam,
                                      boolean rotateCam,
                                      boolean zoomCam,
                                      boolean tilePopup,
                                      boolean placeTiles,
                                      boolean removeTiles,
                                      boolean changeInv,
                                      boolean showInvSlots)
        Creates new creative settings class. Can be send to change the abilities of the users in creative mode.
        Parameters:
        moveCam - allows user to move the cam origin
        rotateCam - allows user to rotate the cam around the origin
        zoomCam - allows user to zoom the cam
        tilePopup - open tile info / settings popup on user click
        placeTiles - allows user to place tiles
        removeTiles - allows user to remove tiles
        changeInv - allow user to open inventory and change inventory content
        showInvSlots - show inventory slots
    • Method Detail

      • withMoveCam

        public CreativeSettingsAction withMoveCam​(boolean value)
        With changed moveCam value.
        Parameters:
        value - new moveCam value
        Returns:
        this
      • withRotateCam

        public CreativeSettingsAction withRotateCam​(boolean value)
        With changed rotateCam value.
        Parameters:
        value - new rotateCam value
        Returns:
        this
      • withZoomCam

        public CreativeSettingsAction withZoomCam​(boolean value)
        With changed zoomCam value.
        Parameters:
        value - new zoomCam value
        Returns:
        this
      • withTilePopup

        public CreativeSettingsAction withTilePopup​(boolean value)
        With changed tilePopup value.
        Parameters:
        value - new tilePopup value
        Returns:
        this
      • withPlaceTiles

        public CreativeSettingsAction withPlaceTiles​(boolean value)
        With changed placeTiles value.
        Parameters:
        value - new placeTiles value
        Returns:
        this
      • withRemoveTiles

        public CreativeSettingsAction withRemoveTiles​(boolean value)
        With changed removeTiles value.
        Parameters:
        value - new removeTiles value
        Returns:
        this
      • withChangeInv

        public CreativeSettingsAction withChangeInv​(boolean value)
        With changed changeInv value.
        Parameters:
        value - new changeInv value
        Returns:
        this
      • withShowInvSlots

        public CreativeSettingsAction withShowInvSlots​(boolean value)
        With changed showInvSlots value.
        Parameters:
        value - new showInvSlots value
        Returns:
        this
      • getName

        public java.lang.String getName()
        Description copied from class: Action
        Name of the action in the json package.
        Specified by:
        getName in class Action
        Returns:
        API name of this Action
      • serializeData

        public java.lang.Object serializeData()
        Description copied from class: Action
        Serializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.
        Specified by:
        serializeData in class Action
        Returns:
        JSONObject or String
      • isLimited

        public boolean isLimited()
        Description copied from class: Action
        Returns true if the action is limited in challenge mode, by the action cap.
        Specified by:
        isLimited in class Action
        Returns:
        if is limited