SelectionPrefabSerializer

public class SelectionPrefabSerializer

Class SelectionPrefabSerializer. Provides selectionprefabserializer functionality for the Hytale server.

java.lang.Object > SelectionPrefabSerializer

Field Summary

versionValue

final BsonValue versionValue

Field versionValue.

version

final int version

Field version.

worldVersion

final int worldVersion

Field worldVersion.

entityVersionValue

final BsonValue entityVersionValue

Field entityVersionValue.

entityVersion

final int entityVersion

Field entityVersion.

anchorX

final int anchorX

Field anchorX.

anchorY

final int anchorY

Field anchorY.

anchorZ

final int anchorZ

Field anchorZ.

selection

final BlockSelection selection

Field selection.

blockIdVersion

final int blockIdVersion

Field blockIdVersion.

obj

final BlockMigration obj

Field obj.

obj2

final BlockMigration obj2

Field obj2.

blocksValue

final BsonValue blocksValue

Field blocksValue.

bsonArray

final BsonArray bsonArray

Field bsonArray.

innerObj

final BsonDocument innerObj

Field innerObj.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

result

final Fluid.ConversionResult result

Field result.

start

final int start

Field start.

start2

final int start2

Field start2.

firstComma

final int firstComma

Field firstComma.

secondComma

final int secondComma

Field secondComma.

fillerX

final int fillerX

Field fillerX.

fillerY

final int fillerY

Field fillerY.

fillerZ

final int fillerZ

Field fillerZ.

roll

final Rotation roll

Field roll.

start3

final int start3

Field start3.

endOfName

final int endOfName

Field endOfName.

blockId

final int blockId

Field blockId.

stateValue

final BsonValue stateValue

Field stateValue.

fluidsValue

final BsonValue fluidsValue

Field fluidsValue.

bsonArray2

final BsonArray bsonArray2

Field bsonArray2.

innerObj2

final BsonDocument innerObj2

Field innerObj2.

x2

final int x2

Field x2.

y2

final int y2

Field y2.

z2

final int z2

Field z2.

fluidName

final String fluidName

Field fluidName.

fluidId

final int fluidId

Field fluidId.

fluidLevel

final byte fluidLevel

Field fluidLevel.

entitiesValues

final BsonValue entitiesValues

Field entitiesValues.

entities

final BsonArray entities

Field entities.

bsonDocument

final BsonDocument bsonDocument

Field bsonDocument.

out

final BsonDocument out

Field out.

contentOut

final BsonArray contentOut

Field contentOut.

aDoc

final BsonDocument aDoc

Field aDoc.

bDoc

final BsonDocument bDoc

Field bDoc.

fluidContentOut

final BsonArray fluidContentOut

Field fluidContentOut.

aDoc2

final BsonDocument aDoc2

Field aDoc2.

bDoc2

final BsonDocument bDoc2

Field bDoc2.

entityTypeStr

final String entityTypeStr

Field entityTypeStr.

unknownComponents

final UnknownComponents unknownComponents

Field unknownComponents.

entity

final Entity entity

Field entity.

extraInto

final ExtraInfo extraInto

Field extraInto.

type

final String type

Field type.

t

final BlockState t

Field t.

holder

final Holder holder

Field holder.

holder2

final Holder holder2

Field holder2.

Method Detail

SelectionPrefabSerializer

public private SelectionPrefabSerializer ()

Method SelectionPrefabSerializer.

deserialize

static BlockSelection deserialize (@Nonnull final BsonDocument doc)

Method deserialize.

Parameters:
@Nonnull final BsonDocument doc

readWorldVersion

public ? readWorldVersion (doc)

Method readWorldVersion.

Parameters:
doc doc

if

public else if (blockTypeStr.contains("|Deco")

Method if.

Parameters:
blockTypeStr.contains("|Deco" blockTypeStr.contains("|Deco"

serialize

static BsonDocument serialize (@Nonnull final BlockSelection prefab)

Method serialize.

Parameters:
@Nonnull final BlockSelection prefab

BsonInt32

public new BsonInt32 (8)

Method BsonInt32.

Parameters:
8 8

BsonString

public new BsonString (assetMap.getAsset(block.blockId()

Method BsonString.

Parameters:
assetMap.getAsset(block.blockId( assetMap.getAsset(block.blockId(

legacyEntityDecode

static Holder legacyEntityDecode (@Nonnull final BsonDocument document, final int version)

Method legacyEntityDecode.

Parameters:
@Nonnull final BsonDocument document
final int version

TempUnknownComponent

public new TempUnknownComponent (document)

Method TempUnknownComponent.

Parameters:
document document

ExtraInfo

public new ExtraInfo (version)

Method ExtraInfo.

Parameters:
version version

legacyStateDecode

static Holder legacyStateDecode (@Nonnull final BsonDocument document)

Method legacyStateDecode.

Parameters:
@Nonnull final BsonDocument document