mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-11 14:12:31 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,42 +2,30 @@
|
||||
#include "Mobs/BossMob.h"
|
||||
#include "BossMobPart.h"
|
||||
|
||||
BossMobPart::BossMobPart(BossMob* bossMob, const std::wstring& id, float w,
|
||||
float h)
|
||||
: Entity(bossMob->level), bossMob(bossMob), id(id) {
|
||||
// 4J Stu - This function call had to be moved here from the Entity ctor to
|
||||
// ensure that the derived version of the function is called
|
||||
this->defineSynchedData();
|
||||
|
||||
|
||||
BossMobPart::BossMobPart(BossMob *bossMob, const std::wstring &id, float w, float h) : Entity(bossMob->level), bossMob( bossMob ), id( id )
|
||||
{
|
||||
// 4J Stu - This function call had to be moved here from the Entity ctor to ensure that
|
||||
// the derived version of the function is called
|
||||
this->defineSynchedData();
|
||||
|
||||
setSize(w, h);
|
||||
setSize(w, h);
|
||||
}
|
||||
|
||||
void BossMobPart::defineSynchedData() {}
|
||||
|
||||
void BossMobPart::defineSynchedData()
|
||||
{
|
||||
void BossMobPart::readAdditionalSaveData(CompoundTag* tag) {}
|
||||
|
||||
void BossMobPart::addAdditonalSaveData(CompoundTag* tag) {}
|
||||
|
||||
bool BossMobPart::isPickable() { return true; }
|
||||
|
||||
bool BossMobPart::hurt(DamageSource* source, int damage) {
|
||||
return bossMob->hurt(
|
||||
std::dynamic_pointer_cast<BossMobPart>(shared_from_this()), source,
|
||||
damage);
|
||||
}
|
||||
|
||||
void BossMobPart::readAdditionalSaveData(CompoundTag *tag)
|
||||
{
|
||||
}
|
||||
|
||||
void BossMobPart::addAdditonalSaveData(CompoundTag *tag)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
bool BossMobPart::isPickable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool BossMobPart::hurt(DamageSource *source, int damage)
|
||||
{
|
||||
return bossMob->hurt( std::dynamic_pointer_cast<BossMobPart>( shared_from_this() ), source, damage);
|
||||
}
|
||||
|
||||
bool BossMobPart::is(std::shared_ptr<Entity> other)
|
||||
{
|
||||
return shared_from_this() == other || bossMob == other.get();
|
||||
bool BossMobPart::is(std::shared_ptr<Entity> other) {
|
||||
return shared_from_this() == other || bossMob == other.get();
|
||||
}
|
||||
Reference in New Issue
Block a user