示例#1
0
 public void ReadFromStream(IPacketCodec content)
 {
     EntityId            = content.ReadInt32();
     IsHardcore          = content.ReadBoolean();
     Gamemode            = content.ReadEnum <Gamemode>();
     PreviousGamemode    = content.ReadEnum <Gamemode>();
     WorldCount          = content.ReadVarInt();
     WorldNames          = content.ReadIdentifiers(WorldCount);
     DimensionCodec      = content.ReadNbtTag <NbtCompound>();
     Dimension           = content.ReadNbtTag <NbtCompound>();
     WorldName           = content.ReadString();
     HashedSeed          = content.ReadInt64();
     MaxPlayers          = content.ReadVarInt();
     ViewDistance        = content.ReadVarInt();
     ReducedDebugInfo    = content.ReadBoolean();
     EnableRespawnScreen = content.ReadBoolean();
     IsDebug             = content.ReadBoolean();
     IsFlat = content.ReadBoolean();
 }