Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic BlockState Support and Misc Delegate Methods to LevelJS #464

Merged
merged 12 commits into from
Aug 29, 2022

Commits on Aug 22, 2022

  1. Added simple Delegate methods for getting WorldBorder, Game Difficult…

    …y, and MoonBrightness to LevelJS
    Hunter19823 committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    7904e88 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Added BlockState Support to Custom Blocks (Needs Testing)

    --Modifications--
    BuiltinKubeJSPlugin:
    - Added "Properties" and "Property" binding to startup scripts for use with BlockStates
    
    BlockBuilder:
    - Added defaultState callback
    - Added placementState callback
    - Added BlockBuilder.property
    - Added BlockBuilder.boolProperty
    - Added BlockBuilder.enumProperty
    - Added BlockBuilder.dirProperty
    - Deprecated waterlogged
    
    BasicBlockJS
    - Implemented BlockBuilder.defaultState
    - Implemented BlockBuilder.placementState
    - Removed usages of BlockBuilder.waterlogged in a handful of places without removing functionality.
    - Added private method safeCallback for catching and logging exceptions in callback functions to startup script console.
    
    Additions:
    - BlockStateModifyCallbackJS (Used for registering default state)
    - BlockStateModifyPlacementCallbackJS (Used for modifying blockstate on placement)
    Hunter19823 committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    82bd62a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    061d51e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d95c972 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3199784 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2022

  1. Removed boolProperty, intProperty, dirProperty, and enumProperty from…

    … BlockBuilder to encourage reflective use instead.
    Hunter19823 committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    c3cf6b2 View commit details
    Browse the repository at this point in the history
  2. BasicBlockJS:

    - Fixed safeCallbackLogic
    - Made BlockBuilder.blockStateProperties immutable after creation.
    - Removed the last remaining uses of waterlogged
    - Fixed WaterLogged logic by implementing SimpleWaterloggedBlock
    
    BlockBuilder:
    - BlockBuilder.blockStateProperties is now a set for quick lookup times.
    - Added get and set methods to BlockStateModifyCallbackJS for simpler syntax and to clear rhino un-boxing issues.
    Hunter19823 committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    db43dc0 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. Fixed BlockStateModifyPlacementCallbackJS.getItemInHand() to be Block…

    …StateModifyPlacementCallbackJS.getItem() for use in beans
    Hunter19823 committed Aug 26, 2022
    Configuration menu
    Copy the full SHA
    d57944a View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Additions to BlockStateModifyPlacementCallbackJS:

     - Added BlockStateModifyPlacementCallbackJS.waterlogged()
     - Added BlockStateModifyPlacementCallbackJS.isWaterLogged()
    Hunter19823 committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    6ce23b1 View commit details
    Browse the repository at this point in the history
  2. Fixed reference to old BlockStateProperties binding

    Hunter19823 committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    fb6ca18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7d3946a View commit details
    Browse the repository at this point in the history
  4. Modified syntax for Waterlogging in BlockStateModifyPlacementCallbackJS:

     - BlockStateModifyPlacementCallbackJS.isWaterLogged() is now BlockStateModifyPlacementCallbackJS.isInWater
     - Added BlockStateModifyPlacementCallbackJS.waterlogged(boolean)
    Hunter19823 committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    3df9e20 View commit details
    Browse the repository at this point in the history