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

Comparator BlockState Methods

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • N/A

      Recently, a BlockState interface was added for a Comparator. It's looking kind of dry though! Might I suggest a #setMode() method to switch between the two different toggleable states of comparators, Compare and Subtract mode? Evidently, a getter would also be in order to retrieve the current state, so #getMode() as well? Something perhaps like this

      public interface Comparator extends BlockState {
          
          public void setMode(ComparatorMode mode);
      
          public ComparatorMode getMode();
      
          public enum ComparatorMode {
              COMPARE("Compare"),
              SUBTRACT("Subtract");
      
              private ComparatorMode(String s) {
              }
          }
      }

      I've never understood .patch files, so I have the slightest of clue how to implement this myself, so I thought I'd post a JIRA ticket instead. Perhaps someone else would like to take on this task

            Unassigned Unassigned
            2008Choco Parker Hawke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: