Expand description
Item behavior implementations.
The actual behavior registration is auto-generated from classes.json.
See src/behavior/generated/items.rs for the generated registration code.
ModulesΒ§
- air π
- axe π
- block_
item π - Block item behavior implementation.
- bonemeal π
- bucket π
- Bucket item behavior implementation.
- compass π
- copper_
chest_ πevents - default π
- Default item behavior implementation.
- dynamic_
name π - ender_
eye π - Ender eye item behavior implementation.
- ender_
pearl π - Ender pearl item behavior (
EnderpearlItem). - firework_
rocket π - Firework rocket item behavior (
FireworkRocketItem). - flint_
and_ πsteel - Flint and steel item behavior with portal ignition.
- food_
on_ πa_ stick - Food-on-a-stick item behavior implementation.
- hoe π
- honeycomb π
- mace π
- player_
head π - potion π
- shield π
- shovel π
- sign_
item π - Sign item behavior implementation.
- standing_
and_ πwall_ block_ item - Standing and wall block item behavior implementation.
- throwable_
potion π - tipped_
arrow π
StructsΒ§
- AirItem
- Air behavior using the item typeβs prototype name like Vanilla
AirItem. - AxeItem
- Behavior for Axes, when used on wood or logs it turns them into their stripped variants
- Block
Item - Behavior for items that place blocks.
- Bone
Meal Item - Behavior for the Bonemeal item.
- Bucket
Item - Handles all bucket variants (empty, water, lava).
- Compass
Item - Compass behavior providing the lodestone-specific name.
- Default
Item Behavior - Vanillaβs base item behavior.
- Double
High Block Item - Behavior for double-high block items (doors, tall flowers, etc.).
- Ender
EyeItem - Behavior for the ender eye item.
- Ender
Pearl Item - Behavior for the ender pearl item.
- Fire
Charge Item - Behavior for fire charge items.
- Firework
Rocket Item - Behavior for the firework rocket item.
- Flint
AndSteel Item - Behavior for flint and steel items.
- Food
OnAStick Item - Behavior for vanilla
FoodOnAStickItem. - Hanging
Sign Item - Behavior for hanging sign items that place hanging sign blocks.
- HoeItem
- Behavior for Hoes
- Honeycomb
Item - Behavior for the honeycomb item. Waxes copper blocks and signs.
- Lingering
Potion Item - Lingering-potion behavior providing Vanillaβs potion-content-dependent name.
- Mace
Item - Vanilla mace item combat behavior.
- Player
Head Item - Player-head placement behavior with the profile-specific name.
- Potion
Item - Potion behavior providing Vanillaβs potion-content-dependent name.
- Shield
Item - Shield behavior providing the base-color-specific name.
- Shovel
Item - Behavior for Shovels, extinguishes campfires and turns grass blocks into paths
- Sign
Item - Behavior for sign items that place sign blocks and open the editor.
- Splash
Potion Item - Splash-potion behavior providing Vanillaβs potion-content-dependent name.
- Standing
AndWall Block Item - Behavior for items that place either a standing or wall variant of a block.
- Tipped
Arrow Item - Tipped-arrow behavior providing Vanillaβs potion-content-dependent name.