Skip to content

Commit

Permalink
feat: update header to 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovelylavender4 committed Jul 20, 2024
2 parents 518109e + a17d738 commit aa536e8
Show file tree
Hide file tree
Showing 15 changed files with 413 additions and 388 deletions.
8 changes: 4 additions & 4 deletions src/mc/events/MinecraftEventing.h
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ class MinecraftEventing {
// ?fireEventFeedbackSubmitted@MinecraftEventing@@UEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N1@Z
MCVAPI void fireEventFeedbackSubmitted(std::string const& productId, bool safetyCheckSuccessful, bool isValidText);

// symbol:
// ?fireEventGameRulesUpdated@MinecraftEventing@@UEAAX_N0AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z
MCVAPI void fireEventGameRulesUpdated(bool oldValue, bool newValue, std::string const& gameRuleName);

// symbol:
// ?fireEventGameRulesUpdated@MinecraftEventing@@UEAAXMMAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z
MCVAPI void fireEventGameRulesUpdated(float oldValue, float newValue, std::string const& gameRuleName);
Expand All @@ -684,10 +688,6 @@ class MinecraftEventing {
// ?fireEventGameRulesUpdated@MinecraftEventing@@UEAAXHHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z
MCVAPI void fireEventGameRulesUpdated(int oldValue, int newValue, std::string const& gameRuleName);

// symbol:
// ?fireEventGameRulesUpdated@MinecraftEventing@@UEAAX_N0AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z
MCVAPI void fireEventGameRulesUpdated(bool oldValue, bool newValue, std::string const& gameRuleName);

// symbol: ?fireEventGameTip@MinecraftEventing@@UEAAXHHHW4InputMode@@@Z
MCVAPI void fireEventGameTip(int, int, int, ::InputMode);

Expand Down
28 changes: 28 additions & 0 deletions src/mc/mc/network/packet/UpdateSubChunkBlocksChangedInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/network/packet/UpdateSubChunkNetworkBlockInfo.h"

struct UpdateSubChunkBlocksChangedInfo {
public:
std::vector<UpdateSubChunkNetworkBlockInfo> mStandards; // this+0x0
std::vector<UpdateSubChunkNetworkBlockInfo> mExtras; // this+0x18

public:
// prevent constructor by default
UpdateSubChunkBlocksChangedInfo& operator=(UpdateSubChunkBlocksChangedInfo const&);
UpdateSubChunkBlocksChangedInfo(UpdateSubChunkBlocksChangedInfo const&);

public:
// NOLINTBEGIN
// symbol: ??0UpdateSubChunkBlocksChangedInfo@@QEAA@XZ
MCAPI UpdateSubChunkBlocksChangedInfo();

// symbol: ?add@UpdateSubChunkBlocksChangedInfo@@QEAAXAEBVBlockPos@@IAEBVBlock@@HPEBUActorBlockSyncMessage@@@Z
MCAPI void add(class BlockPos const&, uint, class Block const&, int, struct ActorBlockSyncMessage const*);

// symbol: ??1UpdateSubChunkBlocksChangedInfo@@QEAA@XZ
MCAPI ~UpdateSubChunkBlocksChangedInfo();

// NOLINTEND
};
26 changes: 26 additions & 0 deletions src/mc/mc/network/packet/UpdateSubChunkNetworkBlockInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/network/NetworkBlockPosition.h"
#include "mc/world/level/ActorBlockSyncMessage.h"

struct UpdateSubChunkNetworkBlockInfo {
public:
NetworkBlockPosition mPos; // this+0x0
uint mRuntimeId; // this+0xC
uchar mUpdateFlags; // this+0x10
ActorBlockSyncMessage mSyncMessage; // this+0x18

public:
// prevent constructor by default
UpdateSubChunkNetworkBlockInfo& operator=(UpdateSubChunkNetworkBlockInfo const&);
UpdateSubChunkNetworkBlockInfo(UpdateSubChunkNetworkBlockInfo const&);
UpdateSubChunkNetworkBlockInfo();

public:
// NOLINTBEGIN
// symbol: ??1UpdateSubChunkNetworkBlockInfo@@QEAA@XZ
MCAPI ~UpdateSubChunkNetworkBlockInfo();

// NOLINTEND
};
14 changes: 7 additions & 7 deletions src/mc/network/AutomationClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ class AutomationClient {
// symbol: ?playerListChanged@AutomationClient@Automation@@UEAAXXZ
MCVAPI void playerListChanged();

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUChatMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ChatMessage const& message);
// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUCommandMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::CommandMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUErrorMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ErrorMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUCommandMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::CommandMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUEventMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::EventMessage const& message);
// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUChatMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::ChatMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUAgentMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::AgentMessage const& message);

// symbol: ?send@AutomationClient@Automation@@UEAAXAEBUEventMessage@CodeBuilder@@@Z
MCVAPI void send(struct CodeBuilder::EventMessage const& message);

// symbol: ?tick@AutomationClient@Automation@@UEAAXXZ
MCVAPI void tick();

Expand Down
Loading

0 comments on commit aa536e8

Please sign in to comment.