parent
3d7acb6d10
commit
ecd8f0c0de
@ -130,19 +130,6 @@ void cProtocol_1_13::SendParticleEffect(const AString & a_ParticleName, Vector3f
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cProtocol_1_13::SendPluginMessage(const AString & a_Channel, const AString & a_Message)
|
|
||||||
{
|
|
||||||
ASSERT(m_State == 3); // In game mode?
|
|
||||||
|
|
||||||
cPacketizer Pkt(*this, pktPluginMessage);
|
|
||||||
Pkt.WriteString(a_Channel);
|
|
||||||
Pkt.WriteString(a_Message);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cProtocol_1_13::SendScoreboardObjective(const AString & a_Name, const AString & a_DisplayName, Byte a_Mode)
|
void cProtocol_1_13::SendScoreboardObjective(const AString & a_Name, const AString & a_DisplayName, Byte a_Mode)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
@ -225,7 +212,7 @@ void cProtocol_1_13::SendUpdateBlockEntity(cBlockEntity & a_BlockEntity)
|
|||||||
// case E_BLOCK_CONDUIT: Action = 5; break; // Update Conduit entity
|
// case E_BLOCK_CONDUIT: Action = 5; break; // Update Conduit entity
|
||||||
case E_BLOCK_STANDING_BANNER:
|
case E_BLOCK_STANDING_BANNER:
|
||||||
case E_BLOCK_WALL_BANNER: Action = 6; break; // Update banner entity
|
case E_BLOCK_WALL_BANNER: Action = 6; break; // Update banner entity
|
||||||
// case structure tile entity: Action = 7; break; // Update Structure tile entity
|
// case Structure Block: Action = 7; break; // Update Structure tile entity
|
||||||
case E_BLOCK_END_GATEWAY: Action = 8; break; // Update destination for a end gateway entity
|
case E_BLOCK_END_GATEWAY: Action = 8; break; // Update destination for a end gateway entity
|
||||||
case E_BLOCK_SIGN_POST: Action = 9; break; // Update sign entity
|
case E_BLOCK_SIGN_POST: Action = 9; break; // Update sign entity
|
||||||
// case E_BLOCK_SHULKER_BOX:Action = 10; break; // sets shulker box - not used just here if anyone is confused from reading the protocol wiki
|
// case E_BLOCK_SHULKER_BOX:Action = 10; break; // sets shulker box - not used just here if anyone is confused from reading the protocol wiki
|
||||||
@ -306,7 +293,7 @@ void cProtocol_1_13::HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer)
|
|||||||
m_Client->SetClientBrand(Brand);
|
m_Client->SetClientBrand(Brand);
|
||||||
|
|
||||||
// Send back our brand, including the length:
|
// Send back our brand, including the length:
|
||||||
SendPluginMessage("minecraft:brand", "Cuberite");
|
SendPluginMessage("minecraft:brand", "\x08""Cuberite");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,6 @@ protected:
|
|||||||
virtual void SendMapData (const cMap & a_Map, int a_DataStartX, int a_DataStartY) override;
|
virtual void SendMapData (const cMap & a_Map, int a_DataStartX, int a_DataStartY) override;
|
||||||
virtual void SendPaintingSpawn (const cPainting & a_Painting) override;
|
virtual void SendPaintingSpawn (const cPainting & a_Painting) override;
|
||||||
virtual void SendParticleEffect (const AString & a_ParticleName, Vector3f a_Src, Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, std::array<int, 2> a_Data) override;
|
virtual void SendParticleEffect (const AString & a_ParticleName, Vector3f a_Src, Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, std::array<int, 2> a_Data) override;
|
||||||
virtual void SendPluginMessage (const AString & a_Channel, const AString & a_Message) override;
|
|
||||||
virtual void SendScoreboardObjective (const AString & a_Name, const AString & a_DisplayName, Byte a_Mode) override;
|
virtual void SendScoreboardObjective (const AString & a_Name, const AString & a_DisplayName, Byte a_Mode) override;
|
||||||
virtual void SendStatistics (const cStatManager & a_Manager) override;
|
virtual void SendStatistics (const cStatManager & a_Manager) override;
|
||||||
virtual void SendTabCompletionResults (const AStringVector & a_Results) override;
|
virtual void SendTabCompletionResults (const AStringVector & a_Results) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user