Files
minecraft-pe-0.6.1/src/world/entity/item/PrimedTnt.h
2026-03-02 22:04:18 +03:00

37 lines
740 B
C++
Executable File

#ifndef NET_MINECRAFT_WORLD_ENTITY_ITEM__PrimedTnt_H__
#define NET_MINECRAFT_WORLD_ENTITY_ITEM__PrimedTnt_H__
//package net.minecraft.world.entity.item;
#include "../Entity.h"
#include "../../level/Level.h"
class CompoundTag;
class PrimedTnt: public Entity
{
typedef Entity super;
public:
PrimedTnt(Level* level);
PrimedTnt(Level* level, float x, float y, float z);
void tick();
bool isPickable();
int getEntityTypeId() const;
float getShadowHeightOffs();
protected:
void addAdditonalSaveData(CompoundTag* entityTag);
void readAdditionalSaveData(CompoundTag* tag);
private:
void explode();
public:
int life;
};
#endif /*NET_MINECRAFT_WORLD_ENTITY_ITEM__PrimedTnt_H__*/