Physics checks. What exactly?

Discussion in 'Plugin Development' started by robhol, Jan 24, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    robhol

    So, once in a while when you're learning by teaching, you end up with something you simply don't understand well enough. This time it's the physics checks.

    In short: what exactly are they, when exactly do they trigger, and what happens when they're cancelled?
     
  2. Offline

    Afforess

    Physics check occur very often, usually when new blocks are broken or placed. When physics is updated, gravel/sand will fall (if possible), water/lave will spread (if possible). Overriding physics allows plugin that block lava spread, etc.
     
  3. Offline

    robhol

    Thanks. What exactly does getChangedType() return? The material before or after the change?
     
  4. Offline

    Afforess

    No idea - check the JavaDocs.
     
  5. Offline

    robhol

    I did. This wasn't the first place I went, trust me. :p
     
  6. Offline

    Afforess

    When in doubt - use lots of print statements. ;)
     
Thread Status:
Not open for further replies.

Share This Page