mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 21:22:19 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "Throwable.h"
|
||||
|
||||
class HitResult;
|
||||
|
||||
class ThrownPotion : public Throwable
|
||||
{
|
||||
public:
|
||||
eINSTANCEOF GetType() { return eTYPE_THROWNPOTION; }
|
||||
static Entity *create(Level *level) { return new ThrownPotion(level); }
|
||||
|
||||
public:
|
||||
static const double SPLASH_RANGE;
|
||||
|
||||
private:
|
||||
static const double SPLASH_RANGE_SQ;
|
||||
|
||||
shared_ptr<ItemInstance> potionItem;
|
||||
|
||||
void _init();
|
||||
|
||||
public:
|
||||
ThrownPotion(Level *level);
|
||||
ThrownPotion(Level *level, shared_ptr<LivingEntity> mob, int potionValue);
|
||||
ThrownPotion(Level *level, shared_ptr<LivingEntity> mob, shared_ptr<ItemInstance> potion);
|
||||
ThrownPotion(Level *level, double x, double y, double z, int potionValue);
|
||||
ThrownPotion(Level *level, double x, double y, double z, shared_ptr<ItemInstance> potion);
|
||||
|
||||
protected:
|
||||
virtual float getGravity();
|
||||
virtual float getThrowPower();
|
||||
virtual float getThrowUpAngleOffset();
|
||||
|
||||
public:
|
||||
void setPotionValue(int potionValue);
|
||||
int getPotionValue();
|
||||
|
||||
protected:
|
||||
virtual void onHit(HitResult *res);
|
||||
|
||||
public:
|
||||
void readAdditionalSaveData(CompoundTag *tag);
|
||||
void addAdditonalSaveData(CompoundTag *tag);
|
||||
};
|
||||
Reference in new issue
Block a user