Class ContainerEntryData

java.lang.Object
org.skriptlang.skript.lang.entry.EntryData<EntryContainer>
org.skriptlang.skript.lang.entry.ContainerEntryData

public class ContainerEntryData extends EntryData<EntryContainer>
An entry data for handling a SectionNode as the root node of another EntryValidator. This enables nested entry data validation.
  • Constructor Details

  • Method Details

    • getEntryValidator

      public EntryValidator getEntryValidator()
    • getValue

      @Nullable public @Nullable EntryContainer getValue(Node node)
      Description copied from class: EntryData
      Obtains a value from the provided node using the methods of this entry data.
      Specified by:
      getValue in class EntryData<EntryContainer>
      Parameters:
      node - The node to obtain a value from.
      Returns:
      The value obtained from the provided node.
    • canCreateWith

      public boolean canCreateWith(Node node)
      Description copied from class: EntryData
      A method to be implemented by all entry data classes that determines whether the provided node may be used with the entry data type to obtain a value.
      Specified by:
      canCreateWith in class EntryData<EntryContainer>
      Parameters:
      node - The node to check.
      Returns:
      Whether the provided node may be used with this entry data to obtain a value.