mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-15 09:12:55 +00:00
23 lines
545 B
C++
23 lines
545 B
C++
#include "DropperTileEntity.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "app/linux/LinuxGame.h"
|
|
#include "minecraft/world/level/tile/entity/TileEntity.h"
|
|
#include "strings.h"
|
|
|
|
std::wstring DropperTileEntity::getName() {
|
|
return hasCustomName() ? name : app.GetString(IDS_CONTAINER_DROPPER);
|
|
}
|
|
|
|
// 4J Added
|
|
std::shared_ptr<TileEntity> DropperTileEntity::clone() {
|
|
std::shared_ptr<DropperTileEntity> result =
|
|
std::make_shared<DropperTileEntity>();
|
|
TileEntity::clone(result);
|
|
|
|
result->name = name;
|
|
|
|
return result;
|
|
} |