mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Add Rocket item, WIP rocket launcher
This commit is contained in:
41
source/world/tile/RocketLauncherTile.cpp
Normal file
41
source/world/tile/RocketLauncherTile.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
#include "RocketLauncherTile.hpp"
|
||||
#include "world/item/RocketItem.hpp"
|
||||
|
||||
RocketLauncherTile::RocketLauncherTile(int id, int texture) : Tile(id, texture, Material::wood)
|
||||
{
|
||||
}
|
||||
|
||||
AABB* RocketLauncherTile::getAABB(Level*, int x, int y, int z)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int RocketLauncherTile::getRenderShape()
|
||||
{
|
||||
return SHAPE_CROSS;
|
||||
}
|
||||
|
||||
bool RocketLauncherTile::isCubeShaped()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RocketLauncherTile::isSolidRender()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int RocketLauncherTile::use(Level* pLevel, int x, int y, int z, Player* player)
|
||||
{
|
||||
// spawn a rocket
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user