mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 11:53:41 +00:00
24 lines
592 B
C++
24 lines
592 B
C++
#include "minecraft/IGameServices.h"
|
|
#include "DropperTileEntity.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "app/linux/LinuxGame.h"
|
|
#include "minecraft/world/level/tile/entity/TileEntity.h"
|
|
#include "strings.h"
|
|
|
|
std::string DropperTileEntity::getName() {
|
|
return hasCustomName() ? name : gameServices().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;
|
|
} |