HyCodeYourTale
classpublicPriority 3

PersistentMetaKey

com.hypixel.hytale.server.core.meta.PersistentMetaKey

extends MetaKey

3

Methods

3

Public Methods

2

Fields

1

Constructors

Constructors

package-private
PersistentMetaKey(int id, String key, Codec<T> codec)

Methods

Public Methods (3)

public
Codec<T> getCodec()
public
String getKey()
public
String toString()
@Nonnull@Override

Fields

Private/Package Fields (2)

privateCodec<T> codec
privateString key

Inheritance

Parent
Current
Interface
Child

Use mouse wheel to zoom, drag to pan. Click nodes to navigate.

Related Classes

Used By

Source Code

package com.hypixel.hytale.server.core.meta;

import com.hypixel.hytale.codec.Codec;
import javax.annotation.Nonnull;

public class PersistentMetaKey<T> extends MetaKey<T> {
   private final String key;
   private final Codec<T> codec;

   PersistentMetaKey(int id, String key, Codec<T> codec) {
      super(id);
      this.key = key;
      this.codec = codec;
   }

   public String getKey() {
      return this.key;
   }

   public Codec<T> getCodec() {
      return this.codec;
   }

   @Nonnull
   @Override
   public String toString() {
      return "PersistentMetaKey{key=" + this.key + "codec=" + this.codec + "}";
   }
}