mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-27 21:15:34 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -7,54 +7,48 @@
|
||||
#include "../Headers/net.minecraft.world.item.h"
|
||||
#include "../Headers/net.minecraft.stats.h"
|
||||
|
||||
const unsigned int WoodSlabTile::SLAB_NAMES[SLAB_NAMES_LENGTH] = { IDS_TILE_STONESLAB_OAK,
|
||||
IDS_TILE_STONESLAB_SPRUCE,
|
||||
IDS_TILE_STONESLAB_BIRCH,
|
||||
IDS_TILE_STONESLAB_JUNGLE,
|
||||
const unsigned int WoodSlabTile::SLAB_NAMES[SLAB_NAMES_LENGTH] = {
|
||||
IDS_TILE_STONESLAB_OAK,
|
||||
IDS_TILE_STONESLAB_SPRUCE,
|
||||
IDS_TILE_STONESLAB_BIRCH,
|
||||
IDS_TILE_STONESLAB_JUNGLE,
|
||||
};
|
||||
|
||||
// public static final String[] WOOD_NAMES = {
|
||||
// "oak", "spruce", "birch", "jungle"
|
||||
// };
|
||||
|
||||
WoodSlabTile::WoodSlabTile(int id, bool fullSize) : HalfSlabTile(id, fullSize, Material::wood)
|
||||
{
|
||||
WoodSlabTile::WoodSlabTile(int id, bool fullSize)
|
||||
: HalfSlabTile(id, fullSize, Material::wood) {}
|
||||
|
||||
Icon* WoodSlabTile::getTexture(int face, int data) {
|
||||
return Tile::wood->getTexture(face, data & TYPE_MASK);
|
||||
}
|
||||
|
||||
Icon *WoodSlabTile::getTexture(int face, int data)
|
||||
{
|
||||
return Tile::wood->getTexture(face, data & TYPE_MASK);
|
||||
int WoodSlabTile::getResource(int data, Random* random, int playerBonusLevel) {
|
||||
return Tile::woodSlabHalf_Id;
|
||||
}
|
||||
|
||||
int WoodSlabTile::getResource(int data, Random *random, int playerBonusLevel)
|
||||
{
|
||||
return Tile::woodSlabHalf_Id;
|
||||
std::shared_ptr<ItemInstance> WoodSlabTile::getSilkTouchItemInstance(int data) {
|
||||
return std::shared_ptr<ItemInstance>(
|
||||
new ItemInstance(Tile::woodSlabHalf, 2, data & TYPE_MASK));
|
||||
}
|
||||
|
||||
std::shared_ptr<ItemInstance> WoodSlabTile::getSilkTouchItemInstance(int data)
|
||||
{
|
||||
return std::shared_ptr<ItemInstance>(new ItemInstance(Tile::woodSlabHalf, 2, data & TYPE_MASK));
|
||||
int WoodSlabTile::getAuxName(int auxValue) {
|
||||
if (auxValue < 0 || auxValue >= SLAB_NAMES_LENGTH) {
|
||||
auxValue = 0;
|
||||
}
|
||||
return SLAB_NAMES[auxValue]; // super.getDescriptionId() + "." +
|
||||
// SLAB_NAMES[auxValue];
|
||||
}
|
||||
|
||||
int WoodSlabTile::getAuxName(int auxValue)
|
||||
{
|
||||
if (auxValue < 0 || auxValue >= SLAB_NAMES_LENGTH)
|
||||
{
|
||||
auxValue = 0;
|
||||
}
|
||||
return SLAB_NAMES[auxValue];//super.getDescriptionId() + "." + SLAB_NAMES[auxValue];
|
||||
void WoodSlabTile::registerIcons(IconRegister* iconRegister) {
|
||||
// None
|
||||
}
|
||||
|
||||
void WoodSlabTile::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
// None
|
||||
}
|
||||
|
||||
unsigned int WoodSlabTile::getDescriptionId(int iData)
|
||||
{
|
||||
if (iData < 0 || iData >= SLAB_NAMES_LENGTH)
|
||||
{
|
||||
iData = 0;
|
||||
}
|
||||
return SLAB_NAMES[iData];
|
||||
unsigned int WoodSlabTile::getDescriptionId(int iData) {
|
||||
if (iData < 0 || iData >= SLAB_NAMES_LENGTH) {
|
||||
iData = 0;
|
||||
}
|
||||
return SLAB_NAMES[iData];
|
||||
}
|
||||
Reference in New Issue
Block a user