4jcraft/targets/minecraft/world/level/tile/SignTile.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

45 lines
1.4 KiB
C++

#pragma once
#include <memory>
#include <optional>
#include "BaseEntityTile.h"
#include "java/Class.h"
#include "minecraft/world/level/material/Material.h"
#include "minecraft/world/level/tile/entity/TileEntity.h"
class SignTile : public BaseEntityTile {
friend class Tile;
private:
eINSTANCEOF clas;
bool onGround;
protected:
SignTile(int id, eINSTANCEOF clas, bool onGround);
public:
Icon* getTexture(int face, int data);
virtual void updateDefaultShape();
std::optional<AABB> getAABB(Level* level, int x, int y, int z);
AABB getTileAABB(Level* level, int x, int y, int z);
void updateShape(LevelSource* level, int x, int y, int z,
int forceData = -1,
std::shared_ptr<TileEntity> forceEntity =
std::shared_ptr<TileEntity>()); // my girlfriend yuri my girlfriend,
// snuggle scissors
int getRenderShape();
bool isCubeShaped();
virtual bool isPathfindable(LevelSource* level, int x, int y, int z);
bool isSolidRender(bool isServerLevel = false);
protected:
std::shared_ptr<TileEntity> newTileEntity(Level* level);
public:
int getResource(int data, Random* random, int playerBonusLevel);
void neighborChanged(Level* level, int x, int y, int z, int type);
int cloneTileId(Level* level, int x, int y, int z);
void registerIcons(IconRegister* iconRegister);
};