Package io.github.thebusybiscuit.slimefun4.core.attributes
package io.github.thebusybiscuit.slimefun4.core.attributes
This package contains all variations of
ItemAttribute
that
can be assigned to a SlimefunItem
-
ClassDescriptionThis interface, when attached to a
SlimefunItem
, provides an easy method for damaging anItemStack
, seeDamageableItem.damageItem(Player, ItemStack)
.Implement this interface for anySlimefunItem
to prevent cargo using only its ID when comparing.This Interface, when attached to a class that inherits fromSlimefunItem
, marks the Item as an electric Block.Implement this interface for anySlimefunItem
to provide methods for external code to 'interact' with the item when placed as a block in the world.ThisItemAttribute
manages holograms.An empty interface that only serves the purpose of bundling together all interfaces of that kind.MachineProcessHolder<T extends MachineOperation>Implement this interface for anySlimefunItem
to prevent thatSlimefunItem
from showing up in theItems.yml
config file.Implement this interface for anyAContainer
to prevent thatAContainer
from being hopperable.Implement this interface for anySlimefunItem
to prevent thatSlimefunItem
from being placed.This interface, when attached to aSlimefunItem
, provides a variable (0-100%) chance for aSlimefunItem
to be dropped by aPiglin
onEntityDropItemEvent
.DO NOT IMPLEMENT THIS INTERFACE This is implemented by everySlimefunItem
by default.Represents theProtectionType
that aProtectiveArmor
prevents the damage from.Implement this interface to aSlimefunArmorPiece
to protect thePlayer
who wears thatSlimefunArmorPiece
fromProtectionType
damage.An enum of potential radiation symptoms.This Interface, when attached to a class that inherits fromSlimefunItem
, marks the Item as radioactive.This enum holds all available levels ofRadioactivity
.This interface, when attached to aSlimefunItem
, provides an easy method for adding a % chance to drop for anSlimefunItem
onEntityDeathEvent
, this chance is 0-100 and used in conjunction with theRecipeType.MOB_DROP
.This interface, when attache to aSlimefunItem
class will make additional items appear in theSlimefunGuide
.This Interface, when attached to a class that inherits fromSlimefunItem
, marks the Item as soulbound.This Interface, when attached to a class that inherits fromSlimefunItem
, marks the Item as "Wither-Proof".