mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-19 04:12:55 +00:00
* StructureGrowEvent, expose internal dimension id * Update StructureGrowEvent.cs * PlayerLoginEvent, ability to change xuids, get xuids, stub for experimental player connection api * add docs, fix up to use cmake --------- Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
21 lines
555 B
C++
21 lines
555 B
C++
#pragma once
|
|
#include "Bush.h"
|
|
|
|
class Random;
|
|
|
|
class Mushroom : public Bush
|
|
{
|
|
friend class Tile;
|
|
protected:
|
|
Mushroom(int id);
|
|
public:
|
|
virtual void updateDefaultShape(); // 4J Added override
|
|
virtual void tick(Level *level, int x, int y, int z, Random *random);
|
|
virtual bool mayPlace(Level *level, int x, int y, int z);
|
|
protected:
|
|
virtual bool mayPlaceOn(int tile);
|
|
public:
|
|
virtual bool canSurvive(Level *level, int x, int y, int z);
|
|
bool growTree(Level* level, int x, int y, int z, Random* random, bool naturalGrowth = true, int entityId = -1);
|
|
};
|