feat: TU19 (Dec 2014) Features & Content (#155)

* try to resolve merge conflict

* feat: TU19 (Dec 2014) Features & Content (#32)

* December 2014 files

* Working release build

* Fix compilation issues

* Add sound to Windows64Media

* Add DLC content and force Tutorial DLC

* Revert "Add DLC content and force Tutorial DLC"

This reverts commit 97a4399472.

* Disable broken light packing

* Disable breakpoint during DLC texture map load

Allows DLC loading but the DLC textures are still broken

* Fix post build not working

* ...

* fix vs2022 build

* fix cmake build

---------

Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
daoge
2026-03-03 03:04:10 +08:00
committed by GitHub
parent 84c31a2331
commit b3feddfef3
2069 changed files with 264842 additions and 139522 deletions

View File

@@ -3,28 +3,30 @@ using namespace std;
#include "FurnaceTile.h"
#include "TileEntity.h"
#include "Container.h"
#include "WorldlyContainer.h"
class Player;
class Level;
class FurnaceTileEntity : public TileEntity, public Container
class FurnaceTileEntity : public TileEntity, public WorldlyContainer
{
public:
eINSTANCEOF GetType() { return eTYPE_FURNACETILEENTITY; }
static TileEntity *create() { return new FurnaceTileEntity(); }
using TileEntity::setChanged;
using TileEntity::setChanged;
static const int SLOT_INPUT = 0;
static const int SLOT_FUEL = 1;
static const int SLOT_RESULT = 2;
private:
static const int BURN_INTERVAL;
ItemInstanceArray *items;
static const intArray SLOTS_FOR_UP;
static const intArray SLOTS_FOR_DOWN;
static const intArray SLOTS_FOR_SIDES;
enum {
INPUT_SLOT = 0,
FUEL_SLOT,
RESULT_SLOT,
};
static const int BURN_INTERVAL;
ItemInstanceArray items;
// 4J-JEV: Added for 'Renewable Energy' achievement.
// Should be true iff characoal was consumed whilst cooking the current stack.
@@ -35,6 +37,10 @@ public:
int litDuration;
int tickCount;
private:
wstring name;
public:
// 4J Stu - Need a ctor to initialise member variables
FurnaceTileEntity();
@@ -45,7 +51,10 @@ public:
virtual shared_ptr<ItemInstance> removeItem(unsigned int slot, int count);
virtual shared_ptr<ItemInstance> removeItemNoUpdate(int slot);
virtual void setItem(unsigned int slot, shared_ptr<ItemInstance> item);
virtual int getName();
virtual wstring getName();
virtual wstring getCustomName();
virtual bool hasCustomName();
virtual void setCustomName(const wstring &name);
virtual void load(CompoundTag *base);
virtual void save(CompoundTag *base);
virtual int getMaxStackSize();
@@ -67,8 +76,13 @@ public:
virtual bool stillValid(shared_ptr<Player> player);
virtual void setChanged();
void startOpen();
void stopOpen();
void startOpen();
void stopOpen();
virtual bool canPlaceItem(int slot, shared_ptr<ItemInstance> item);
virtual intArray getSlotsForFace(int face);
virtual bool canPlaceItemThroughFace(int slot, shared_ptr<ItemInstance> item, int face);
virtual bool canTakeItemThroughFace(int slot, shared_ptr<ItemInstance> item, int face);
// 4J Added
virtual shared_ptr<TileEntity> clone();