mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-03 08:34:39 +00:00
TU24
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
#include "stdafx.h"
|
||||
#include "FenceGateTile.h"
|
||||
#include "AABB.h"
|
||||
#include "net.minecraft.world.h"
|
||||
#include "net.minecraft.world.level.h"
|
||||
#include "net.minecraft.h"
|
||||
#include "LevelEvent.h"
|
||||
|
||||
FenceGateTile::FenceGateTile(int id, const wstring& texture) : DirectionalTile(id, Material::wood, isSolidRender())
|
||||
FenceGateTile::FenceGateTile(int id) : DirectionalTile(id, Material::wood, isSolidRender() )
|
||||
{
|
||||
this->texture = texture;
|
||||
}
|
||||
|
||||
Icon *FenceGateTile::getTexture(int face, int data)
|
||||
{
|
||||
return Tile::wood->getTexture(face);
|
||||
}
|
||||
|
||||
bool FenceGateTile::mayPlace(Level *level, int x, int y, int z)
|
||||
@@ -17,16 +20,6 @@ bool FenceGateTile::mayPlace(Level *level, int x, int y, int z)
|
||||
return Tile::mayPlace(level, x, y, z);
|
||||
}
|
||||
|
||||
bool FenceGateTile::isOpen(int data)
|
||||
{
|
||||
return (data & OPEN_BIT) != 0;
|
||||
}
|
||||
|
||||
bool FenceGateTile::isFenceGate(int t)
|
||||
{
|
||||
return (t == Tile::fenceGate_Id) || (t >= Tile::spruceFenceGate_Id && t <= Tile::darkOakFenceGate_Id);
|
||||
}
|
||||
|
||||
AABB *FenceGateTile::getAABB(Level *level, int x, int y, int z)
|
||||
{
|
||||
int data = level->getData(x, y, z);
|
||||
@@ -139,9 +132,14 @@ void FenceGateTile::neighborChanged(Level *level, int x, int y, int z, int type)
|
||||
}
|
||||
}
|
||||
|
||||
bool FenceGateTile::isOpen(int data)
|
||||
{
|
||||
return (data & OPEN_BIT) != 0;
|
||||
}
|
||||
|
||||
void FenceGateTile::registerIcons(IconRegister *iconRegister)
|
||||
{
|
||||
icon = iconRegister->registerIcon(texture);
|
||||
// None
|
||||
}
|
||||
|
||||
bool FenceGateTile::shouldRenderFace(LevelSource *level, int x, int y, int z, int face)
|
||||
|
||||
Reference in New Issue
Block a user