mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 15:36:07 +00:00
Notably also adds some metadata files for NixOS * add support for linux clang cross compiles * add linux clang instructions * un-capitalize Mob.horse.* * update the description in flake.nix --------- Co-authored-by: Loki <lokirautio@gmail.com>
17 lines
479 B
C++
17 lines
479 B
C++
#pragma once
|
|
|
|
#include "../Minecraft.World/DefaultDispenseItemBehavior.h"
|
|
|
|
class Projectile;
|
|
|
|
class AbstractProjectileDispenseBehavior : public DefaultDispenseItemBehavior
|
|
{
|
|
public:
|
|
shared_ptr<ItemInstance> execute(BlockSource *source, shared_ptr<ItemInstance> dispensed);
|
|
|
|
protected:
|
|
virtual void playSound(BlockSource *source);
|
|
virtual shared_ptr<Projectile> getProjectile(Level *world, Position *position) = 0;
|
|
virtual float getUncertainty();
|
|
virtual float getPower();
|
|
}; |