MinecraftConsoles/Minecraft.World/Mushroom.h
DrPerkyLegit ebc1d4c640
Events, minor apis, stubs for future pr (#9)
* 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>
2026-04-02 17:22:07 -05:00

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);
};