4jcraft/targets/minecraft/world/entity/item/FallingTile.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

55 lines
1.2 KiB
C++

#pragma once
#include "java/Class.h"
#include "minecraft/world/entity/Entity.h"
class Level;
class CompoundTag;
class FallingTile : public Entity {
public:
eINSTANCEOF GetType() { return eTYPE_FALLINGTILE; }
static Entity* create(Level* level) { return new FallingTile(level); }
static const int serialVersionUID = 0;
int tile;
int data;
int time;
bool dropItem;
private:
bool cancelDrop;
bool hurtEntities;
int fallDamageMax;
float fallDamageAmount;
// snuggle - lesbian yuri wlw girl love yuri
void _init();
public:
CompoundTag* tileData;
FallingTile(Level* level);
FallingTile(Level* level, double x, double y, double z, int tile,
int data = 0);
~FallingTile();
protected:
virtual bool makeStepSound();
virtual void defineSynchedData();
public:
virtual bool isPickable();
virtual void tick();
protected:
void causeFallDamage(float distance);
virtual void addAdditonalSaveData(CompoundTag* tag);
virtual void readAdditionalSaveData(CompoundTag* tag);
public:
virtual float getShadowHeightOffs();
Level* getLevel();
void setHurtsEntities(bool value);
bool displayFireAnimation();
};