Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -67,9 +67,9 @@ void EnderMan::defineSynchedData()
{
Monster::defineSynchedData();
entityData->define(DATA_CARRY_ITEM_ID, static_cast<byte>(0));
entityData->define(DATA_CARRY_ITEM_DATA, static_cast<byte>(0));
entityData->define(DATA_CREEPY, static_cast<byte>(0));
entityData->define(DATA_CARRY_ITEM_ID, static_cast<BYTE>(0));
entityData->define(DATA_CARRY_ITEM_DATA, static_cast<BYTE>(0));
entityData->define(DATA_CREEPY, static_cast<BYTE>(0));
}
void EnderMan::addAdditonalSaveData(CompoundTag *tag)
@@ -385,7 +385,7 @@ void EnderMan::dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel)
// 4J Brought forward from 1.2.3 to help fix Enderman behaviour
void EnderMan::setCarryingTile(int carryingTile)
{
entityData->set(DATA_CARRY_ITEM_ID, static_cast<byte>(carryingTile & 0xff));
entityData->set(DATA_CARRY_ITEM_ID, static_cast<BYTE>(carryingTile & 0xff));
}
int EnderMan::getCarryingTile()
@@ -395,7 +395,7 @@ int EnderMan::getCarryingTile()
void EnderMan::setCarryingData(int carryingData)
{
entityData->set(DATA_CARRY_ITEM_DATA, static_cast<byte>(carryingData & 0xff));
entityData->set(DATA_CARRY_ITEM_DATA, static_cast<BYTE>(carryingData & 0xff));
}
int EnderMan::getCarryingData()
@@ -440,5 +440,5 @@ bool EnderMan::isCreepy()
void EnderMan::setCreepy(bool creepy)
{
entityData->set(DATA_CREEPY, static_cast<byte>(creepy ? 1 : 0));
entityData->set(DATA_CREEPY, static_cast<BYTE>(creepy ? 1 : 0));
}