Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6270

Target Block does not have a Powerable BlockState (Unable to determine power level of Target Block)

XMLWordPrintable

    • git-Spigot-a19903d-167ff59 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
    • Yes

      Performing the following test on a Block object pointing to a Target block, yields these results:

      System.out.println(targetBlock.getType().name());
      System.out.println(targetBlock.getState() instanceof Powerable);
      System.out.println(targetBlock.getState() instanceof AnaloguePowerable);

      [23:55:01] [Server thread/INFO]: TARGET
      [23:55:01] [Server thread/INFO]: false
      [23:55:01] [Server thread/INFO]: false

      In my opinion, this means it is impossible to determine the power level of the block.

      If determined to be valid, I wouldn't mind trying to fix this myself, but I wanted to gague community consensus on the issue first.

            Unassigned Unassigned
            stuntguy3000 Luke Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: