File Item.hpp¶
Enums
-
enum ItemColor¶
Values:
-
enum ItemUseMethod¶
Values:
-
enum InHandUpdateType¶
Values:
-
enum ActorLocation¶
Values:
-
enum LevelSoundEvent¶
Values:
-
struct ActorDefinitionIdentifier¶
-
class Item¶
Subclassed by BlockItem
Public Functions
-
virtual ~Item()¶
-
virtual bool initServer(const Json::Value&, const SemVersion&, bool, const Experiments&)¶
-
virtual void tearDown()¶
-
virtual bool isMusicDisk() const¶
-
virtual void executeEvent(ItemStackBase &item, const std::string &name, RenderParams &pars) const¶
-
virtual void _unknown_8()¶
-
virtual bool isHumanoidArmor() const¶
-
virtual bool isBlockPlanterItem() const¶
-
virtual void _unknown_11()¶
-
virtual bool isCandle() const¶
-
virtual bool isDamageable() const¶
-
virtual bool isDyeable() const¶
-
virtual bool isDye() const¶
-
virtual bool isFertilizer() const¶
-
virtual bool isFood() const¶
-
virtual bool isThrowable() const¶
-
virtual bool isUseable() const¶
-
virtual bool isTrimAllowed() const¶
-
virtual ItemComponent *getComponent(const HashedString &a2) const¶
-
virtual IFoodItemComponent *getFood() const¶
-
virtual std::unique_ptr<CompoundTag> buildNetworkTag() const¶
-
virtual void initializeFromNetwork(const CompoundTag &tag)¶
-
virtual std::vector<std::string> validateFromNetwork(const CompoundTag&)¶
-
virtual BlockShape getBlockShape() const¶
-
virtual bool canBeDepleted() const¶
-
virtual int getLevelDataForAuxValue(int auxValue) const¶
-
virtual bool isStackedByData() const¶
-
virtual short getMaxDamage() const¶
-
virtual int getAttackDamage() const¶
-
virtual bool isHandEquipped() const¶
-
virtual bool isGlint(const ItemStackBase &stack) const¶
-
virtual bool isPattern() const¶
-
virtual int getPatternIndex() const¶
-
virtual void _unknown_41()¶
-
virtual bool isWearableThroughLootTable(const CompoundTag *userData) const¶
-
virtual bool canDestroyInCreative() const¶
-
virtual bool isDestructive(int auxValue) const¶
-
virtual bool isLiquidClipItem() const¶
-
virtual bool requiresInteract() const¶
-
virtual void appendFormattedHovertext(const ItemStackBase &stack, Level &level, std::string &hovertext, bool showCategory) const¶
-
virtual bool isValidRepairItem(const ItemStackBase &source, const ItemStackBase &repairItem, const BaseGameVersion &baseGameVersion) const¶
-
virtual int getEnchantSlot() const¶
-
virtual int getEnchantValue() const¶
-
virtual int getArmorValue() const¶
-
virtual int getToughnessValue() const¶
-
virtual Puv::Legacy::LevelSoundEvent getBreakSound() const¶
-
virtual void _unknown_55()¶
-
virtual bool isValidAuxValue(int auxValue) const¶
-
virtual int getDamageChance(int unbreaking) const¶
-
virtual float getViewDamping() const¶
-
virtual void _unknown_59()¶
-
virtual void _unknown_60()¶
-
virtual void _unknown_61()¶
-
virtual mce::Color getColor(const CompoundTag *userData, const ItemDescriptor &instance) const¶
-
virtual bool hasCustomColor(const ItemStackBase &instance) const¶
-
virtual bool hasCustomColor(const CompoundTag *userData) const¶
-
virtual void clearColor(ItemStackBase &instance) const¶
-
virtual void setColor(ItemStackBase &instance, const mce::Color &color) const¶
-
virtual void _unknown_67()¶
-
virtual void _unknown_68()¶
-
virtual ActorDefinitionIdentifier getActorIdentifier(const ItemStack &a3) const¶
-
virtual int buildIdAux(short auxValue, const CompoundTag *a3) const¶
-
virtual bool canUseOnSimTick() const¶
-
virtual Actor *createProjectileActor(BlockSource&, const ItemStack&, const Vec3&, const Vec3&) const¶
-
virtual bool dispense(BlockSource ®ion, Container &container, int slot, const Vec3 &pos, unsigned char face) const¶
-
virtual ItemUseMethod useTimeDepleted(ItemStack &inoutInstance, Level *level, Player *player) const¶
-
virtual float getDestroySpeed(const ItemStackBase &itemStack, const Block &block) const¶
-
virtual void hitBlock(ItemStack &instance, const Block &block, const BlockPos &blockPos, Mob &attacker) const¶
-
virtual bool mineBlock(ItemStack &instance, const Block &block, int x, int y, int z, Actor *owner) const¶
-
virtual std::string buildDescriptionName(const ItemStackBase&) const¶
-
virtual std::string buildDescriptionId(const ItemDescriptor&, const CompoundTag*) const¶
-
virtual std::string buildEffectDescriptionName(const ItemStackBase&) const¶
-
virtual void readUserData(ItemStackBase &stack, IDataInput &input, ReadOnlyBinaryStream &underlyingStream) const¶
-
virtual void writeUserData(const ItemStackBase &stack, IDataOutput &output) const¶
-
virtual unsigned char getMaxStackSize(const ItemDescriptor &item) const¶
-
virtual bool inventoryTick(ItemStack &itemStack, Level &level, Actor &owner, int slot, bool selected) const¶
-
virtual void refreshedInContainer(const ItemStackBase &stack, Level &level) const¶
-
virtual const HashedString &getCooldownType() const¶
-
virtual int getCooldownTime() const¶
-
virtual void fixupCommon(ItemStackBase &stack) const¶
-
virtual void fixupCommon(ItemStackBase &stack, Level &level) const¶
-
virtual InHandUpdateType getInHandUpdateType(const Player &player, const ItemStack &oldItem, const ItemStack &newItem, bool a5, bool a6) const¶
-
virtual bool validFishInteraction(int auxValue) const¶
-
virtual void enchantProjectile(const ItemStackBase &weapon, Actor &projectile) const¶
-
virtual ActorLocation getEquipLocation() const¶
-
virtual Puv::Legacy::LevelSoundEvent getEquipSound() const¶
-
virtual void _unknown_99()¶
-
virtual void _unknown_100()¶
-
virtual bool hasSameRelevantUserData(const ItemStackBase&, const ItemStackBase&) const¶
-
virtual void initClient(const Json::Value&, const SemVersion&, bool, const Experiments&)¶
-
virtual ResolvedItemIconInfo getIconInfo(const ItemStackBase &a3, int a4, bool a5) const¶
-
virtual int getAnimationFrameFor(Mob *holder, bool asItemEntity, const ItemStack *item, bool shouldAnimate) const¶
-
virtual bool isEmissive(int auxValue) const¶
-
virtual Brightness getLightEmission(int auxValue) const¶
-
virtual int getIconYOffset() const¶
-
virtual bool canBeCharged() const¶
-
virtual float getFurnaceXPmultiplier(const ItemStackBase &instance) const¶
-
virtual bool calculatePlacePos(ItemStackBase &instance, Actor &entity, unsigned char &face, BlockPos &pos) const¶
-
short getDamageValue(CompoundTag *mUserData) const¶
Public Members
-
bool mIsMirroredArt¶
-
string_span mHoverTextColorFormat¶
-
short mId¶
-
short mMaxDamage¶
-
HashedString mRawNameId¶
-
short mMaxUseDuration¶
-
WeakPtr<BlockLegacy> mLegacyBlock¶
-
CreativeItemCategory mCreativeCategory¶
Public Static Functions
-
static void addCreativeItem(ItemRegistryRef*, const Block*)¶
Private Functions
-
virtual bool _checkUseOnPermissions(Actor &entity, ItemStackBase &item, const unsigned char &face, const BlockPos &pos) const¶
-
virtual bool _calculatePlacePos(ItemStackBase &instance, Actor &entity, unsigned char &face, BlockPos &pos) const¶
-
virtual bool _shouldAutoCalculatePlacePos() const¶
-
virtual ~Item()¶
-
namespace Json¶