Class MetadataHolder

java.lang.Object
net.minestom.server.entity.MetadataHolder

public final class MetadataHolder extends Object
  • Constructor Details

    • MetadataHolder

      public MetadataHolder(@Nullable @Nullable Entity entity)
  • Method Details

    • getIndex

      public <T> T getIndex(int index, @Nullable T defaultValue)
    • setIndex

      public void setIndex(int index, @NotNull Metadata.Entry<?> entry)
    • setNotifyAboutChanges

      public void setNotifyAboutChanges(boolean notifyAboutChanges)
    • getEntries

      @NotNull public @NotNull Map<Integer,Metadata.Entry<?>> getEntries()