Class NbtPathNavigationList

java.lang.Object
org.cyclops.cyclopscore.nbt.path.navigate.NbtPathNavigationList
All Implemented Interfaces:
INbtPathNavigation

public class NbtPathNavigationList extends Object implements INbtPathNavigation
A navigation that takes the union of several navigations.
  • Constructor Details

  • Method Details

    • isLeafKey

      public boolean isLeafKey(String key)
      Description copied from interface: INbtPathNavigation
      Check if the given key is a leaf in this navigation, i.e., it is present and has no children.
      Specified by:
      isLeafKey in interface INbtPathNavigation
      Parameters:
      key - A key.
      Returns:
      If it is a leaf key.
    • getNext

      @Nullable public INbtPathNavigation getNext(String key)
      Description copied from interface: INbtPathNavigation
      Get the child navigation of the given key, or null if it is not present.
      Specified by:
      getNext in interface INbtPathNavigation
      Parameters:
      key - A key.
      Returns:
      The child navigation or null.