Contents
- Description
- Nested Class Summary
- Method Summary
- Method Details
- getCodec()
- getMinVersion()
- getMaxVersion()
- getHighestSupportedVersion()
- supportsVersion(int)
- getValidators()
- hasNonNullValidator()
- isDeprecated()
- getDocumentation()
- decode(BsonDocument, Type, ExtraInfo)
- decodeAndInherit(BsonDocument, Type, Type, ExtraInfo)
- encode(BsonDocument, Type, ExtraInfo)
- inherit(Type, Type, ExtraInfo)
- decodeJson(RawJsonReader, Type, ExtraInfo)
- decodeAndInheritJson(RawJsonReader, Type, Type, ExtraInfo)
- setValue(Type, FieldType, ExtraInfo)
- validate(Type, ExtraInfo)
- validateDefaults(Type, ExtraInfo, Set)
- nullValidate(Type, ValidationResults, ExtraInfo)
- updateSchema(SchemaContext, Schema)
- toString()
Class BuilderField<Type, FieldType>
java.lang.Object
com.hypixel.hytale.codec.builder.BuilderField<Type, FieldType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddecodeAndInherit(org.bson.BsonDocument document, Type t, Type parent, ExtraInfo extraInfo) voiddecodeAndInheritJson(RawJsonReader reader, Type t, Type parent, ExtraInfo extraInfo) voiddecodeJson(RawJsonReader reader, Type t, ExtraInfo extraInfo) voidgetCodec()intintintbooleanvoidbooleanA deprecated field is kept only so existing content keeps loading.voidnullValidate(Type t, ValidationResults results, ExtraInfo extraInfo) voidbooleansupportsVersion(int version) Tests if the version is supported by the version range (inclusive) specified on the field.toString()voidupdateSchema(SchemaContext context, Schema target) voidvoidvalidateDefaults(Type t, ExtraInfo extraInfo, Set<Codec<?>> tested)
-
Method Details
-
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
-
hasNonNullValidator
public boolean hasNonNullValidator() -
isDeprecated
public boolean isDeprecated()A deprecated field is kept only so existing content keeps loading. -
getDocumentation
-
decode
-
decodeAndInherit
-
encode
-
inherit
-
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
-
validate
-
validateDefaults
-
nullValidate
-
updateSchema
-
toString
-