chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -6,27 +6,26 @@
#include "../Util/SoundTypes.h"
#include "ExperienceItem.h"
ExperienceItem::ExperienceItem(int id) : Item(id)
{
ExperienceItem::ExperienceItem(int id) : Item(id) {}
bool ExperienceItem::isFoil(std::shared_ptr<ItemInstance> itemInstance) {
return true;
}
bool ExperienceItem::isFoil(std::shared_ptr<ItemInstance> itemInstance)
{
return true;
bool ExperienceItem::TestUse(Level* level, std::shared_ptr<Player> player) {
return true;
}
bool ExperienceItem::TestUse(Level *level, std::shared_ptr<Player> player)
{
return true;
}
std::shared_ptr<ItemInstance> ExperienceItem::use(std::shared_ptr<ItemInstance> itemInstance, Level *level, std::shared_ptr<Player> player)
{
if (!player->abilities.instabuild)
{
itemInstance->count--;
}
level->playSound(player, eSoundType_RANDOM_BOW, 0.5f, 0.4f / (random->nextFloat() * 0.4f + 0.8f));
if (!level->isClientSide) level->addEntity( std::shared_ptr<ThrownExpBottle>( new ThrownExpBottle(level, player) ));
return itemInstance;
std::shared_ptr<ItemInstance> ExperienceItem::use(
std::shared_ptr<ItemInstance> itemInstance, Level* level,
std::shared_ptr<Player> player) {
if (!player->abilities.instabuild) {
itemInstance->count--;
}
level->playSound(player, eSoundType_RANDOM_BOW, 0.5f,
0.4f / (random->nextFloat() * 0.4f + 0.8f));
if (!level->isClientSide)
level->addEntity(std::shared_ptr<ThrownExpBottle>(
new ThrownExpBottle(level, player)));
return itemInstance;
}