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 Details

    • INSTANCE

      public static final BsonPrefabBufferDeserializer 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

      @Nonnull public PrefabBuffer deserialize(Path path, @Nonnull org.bson.BsonDocument document)
      Specified by:
      deserialize in interface PrefabBufferDeserializer<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)