Class BuilderField<Type, FieldType>

java.lang.Object
com.hypixel.hytale.codec.builder.BuilderField<Type, FieldType>

public class BuilderField<Type, FieldType> extends Object
  • Method Details

    • getCodec

      @Nonnull public KeyedCodec<FieldType> getCodec()
    • getMinVersion

      public int getMinVersion()
    • getMaxVersion

      public int getMaxVersion()
    • getHighestSupportedVersion

      public int getHighestSupportedVersion()
    • supportsVersion

      public boolean supportsVersion(int version)
      Tests if the version is supported by the version range (inclusive) specified on the field.
    • getValidators

      @Nullable public List<Validator<? super FieldType>> getValidators()
    • hasNonNullValidator

      public boolean hasNonNullValidator()
    • isDeprecated

      public boolean isDeprecated()
      A deprecated field is kept only so existing content keeps loading.
    • getDocumentation

      @Nullable public String getDocumentation()
    • decode

      public void decode(org.bson.BsonDocument document, Type t, @Nonnull ExtraInfo extraInfo)
    • decodeAndInherit

      public void decodeAndInherit(org.bson.BsonDocument document, Type t, @Nullable Type parent, @Nonnull ExtraInfo extraInfo)
    • encode

      public void encode(@Nonnull org.bson.BsonDocument document, Type t, @Nonnull ExtraInfo extraInfo)
    • inherit

      public void inherit(Type t, Type parent, ExtraInfo extraInfo)
    • decodeJson

      public void decodeJson(@Nonnull RawJsonReader reader, Type t, @Nonnull ExtraInfo extraInfo) throws IOException
      Throws:
      IOException
    • decodeAndInheritJson

      public void decodeAndInheritJson(@Nonnull RawJsonReader reader, Type t, @Nullable Type parent, @Nonnull ExtraInfo extraInfo) throws IOException
      Throws:
      IOException
    • setValue

      public void setValue(Type t, @Nullable FieldType value, @Nonnull ExtraInfo extraInfo)
    • validate

      public void validate(Type t, @Nonnull ExtraInfo extraInfo)
    • validateDefaults

      public void validateDefaults(Type t, @Nonnull ExtraInfo extraInfo, Set<Codec<?>> tested)
    • nullValidate

      public void nullValidate(Type t, @Nonnull ValidationResults results, ExtraInfo extraInfo)
    • updateSchema

      public void updateSchema(SchemaContext context, @Nonnull Schema target)
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object