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

@@ -38,7 +38,7 @@ ItemFrame::ItemFrame(Level *level, int xTile, int yTile, int zTile, int dir) : H
void ItemFrame::defineSynchedData()
{
getEntityData()->defineNULL(DATA_ITEM, nullptr);
getEntityData()->define(DATA_ROTATION, static_cast<byte>(0));
getEntityData()->define(DATA_ROTATION, static_cast<BYTE>(0));
}
bool ItemFrame::shouldRenderAtSqrDistance(double distance)
@@ -107,7 +107,7 @@ int ItemFrame::getRotation()
void ItemFrame::setRotation(int rotation)
{
getEntityData()->set(DATA_ROTATION, static_cast<byte>(rotation % 4));
getEntityData()->set(DATA_ROTATION, static_cast<BYTE>(rotation % 4));
}
void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
@@ -115,7 +115,7 @@ void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
if (getItem() != nullptr)
{
tag->putCompound(L"Item", getItem()->save(new CompoundTag()));
tag->putByte(L"ItemRotation", static_cast<byte>(getRotation()));
tag->putByte(L"ItemRotation", static_cast<BYTE>(getRotation()));
tag->putFloat(L"ItemDropChance", dropChance);
}
HangingEntity::addAdditonalSaveData(tag);