Class BsonPrefabBufferDeserializer
java.lang.Object
com.hypixel.hytale.server.core.prefab.selection.buffer.BsonPrefabBufferDeserializer
- All Implemented Interfaces:
PrefabBufferDeserializer<org.bson.BsonDocument>
public class BsonPrefabBufferDeserializer
extends Object
implements PrefabBufferDeserializer<org.bson.BsonDocument>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.bson.BsonInt32private static final org.bson.BsonInt32private static final org.bson.BsonInt32static final BsonPrefabBufferDeserializerstatic final org.bson.BsonInt32 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(Path path, org.bson.BsonDocument document) private static voiddeserializeBlockType(PrefabBufferBlockEntry blockEntry, org.bson.BsonDocument blockDocument, BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> assetMap, Function<String, String> blockMigration) private static it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<Holder<EntityStore>>> deserializeEntityHolders(org.bson.BsonDocument document, Vector3i anchor, int version, int entityVersion) private static voiddeserializeState(PrefabBufferBlockEntry blockEntry, org.bson.BsonDocument blockDocument, int version, int worldVersion)
-
Field Details
-
INSTANCE
-
LEGACY_BLOCK_ID_VERSION
public static final org.bson.BsonInt32 LEGACY_BLOCK_ID_VERSION -
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
-
BsonPrefabBufferDeserializer
public BsonPrefabBufferDeserializer()
-
-
Method Details
-
deserialize
- Specified by:
deserializein interfacePrefabBufferDeserializer<org.bson.BsonDocument>
-
deserializeBlockType
private static void deserializeBlockType(@Nonnull PrefabBufferBlockEntry blockEntry, @Nonnull org.bson.BsonDocument blockDocument, @Nonnull BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> assetMap, @Nullable Function<String, String> blockMigration) -
deserializeState
private static void deserializeState(@Nonnull PrefabBufferBlockEntry blockEntry, @Nonnull org.bson.BsonDocument blockDocument, int version, int worldVersion) -
deserializeEntityHolders
@Nonnull private static it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<List<Holder<EntityStore>>> deserializeEntityHolders(@Nonnull org.bson.BsonDocument document, @Nonnull Vector3i anchor, int version, int entityVersion)
-