Class SelectionPrefabSerializer
java.lang.Object
com.hypixel.hytale.server.core.prefab.config.SelectionPrefabSerializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<org.bson.BsonDocument> private static final org.bson.BsonInt32private static final org.bson.BsonInt32private static final org.bson.BsonInt32static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockSelectiondeserialize(org.bson.BsonDocument doc) static Holder<EntityStore> legacyEntityDecode(org.bson.BsonDocument document, int version) static Holder<ChunkStore> legacyStateDecode(org.bson.BsonDocument document) static intreadWorldVersion(org.bson.BsonDocument document) static org.bson.BsonDocumentserialize(BlockSelection prefab)
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
COMPARE_BLOCK_POSITION
-
DEFAULT_SUPPORT_VALUE
private static final org.bson.BsonInt32 DEFAULT_SUPPORT_VALUE -
DEFAULT_FILLER_VALUE
private static final org.bson.BsonInt32 DEFAULT_FILLER_VALUE -
DEFAULT_ROTATION_VALUE
private static final org.bson.BsonInt32 DEFAULT_ROTATION_VALUE
-
-
Constructor Details
-
SelectionPrefabSerializer
private SelectionPrefabSerializer()
-
-
Method Details
-
deserialize
-
serialize
-
readWorldVersion
public static int readWorldVersion(@Nonnull org.bson.BsonDocument document) -
legacyEntityDecode
@Nullable public static Holder<EntityStore> legacyEntityDecode(@Nonnull org.bson.BsonDocument document, int version) -
legacyStateDecode
@Nonnull public static Holder<ChunkStore> legacyStateDecode(@Nonnull org.bson.BsonDocument document)
-