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 π
- bed_
item π - block_
item π - Block item behavior implementation.
- bonemeal π
- bottle π
- Glass bottle item behavior (
BottleItem). - brush π
- Brush item behavior for continuous archaeology brushing.
- bucket π
- Bucket item behavior implementation.
- compass π
- copper_
chest_ πevents - default π
- Default item behavior implementation.
- dye π
- Vanilla
DyeItembehavior: dyes an alive, unsheared sheep. - dynamic_
name π - egg π
- Egg item behavior (
EggItem). - ender_
eye π - Ender eye item behavior implementation.
- ender_
pearl π - Ender pearl item behavior (
EnderpearlItem). - firework_
rocket π - Firework rocket item behavior (
FireworkRocketItem). - fishing_
rod π - flint_
and_ πsteel - Flint and steel item behavior with portal ignition.
- food_
on_ πa_ stick - Food-on-a-stick item behavior implementation.
- hoe π
- honeycomb π
- ink_sac π
- Ink sac and glow ink sac item behaviors.
- lead π
- mace π
- name_
tag π - place_
on_ πwater_ block_ item - player_
head π - potion π
- scaffolding_
block_ πitem - shears π
- Shears item behavior (
ShearsItem). - shield π
- shovel π
- sign_
item π - Sign item behavior implementation.
- snowball π
- Snowball item behavior (
SnowballItem). - solid_
bucket_ πitem - Solid bucket item behavior implementation.
- spawn_
egg π - Data-driven vanilla spawn-egg behavior.
- spyglass π
- Spyglass item behavior.
- 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
- BedItem
- Behavior for beds
- Block
Item - Behavior for items that place blocks.
- Bone
Meal Item - Behavior for the Bonemeal item.
- Bottle
Item - Behavior for the glass bottle item.
- Brush
Item - Vanilla brush item behavior for continuous archaeology brushing.
- 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.).
- DyeItem
- Behavior for the sixteen dye items (
DyeItem). - EggItem
- Behavior for the egg item.
- 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.
- Fishing
RodItem - Behavior for the fishing rod item.
- Flint
AndSteel Item - Behavior for flint and steel items.
- Food
OnAStick Item - Behavior for vanilla
FoodOnAStickItem. - Glow
InkSac Item - Behavior for the glow ink sac item. Makes sign text glow.
- 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.
- InkSac
Item - Behavior for the ink sac item. Removes glow from sign text.
- Lead
Item - Vanilla lead item behavior.
- Lingering
Potion Item - Lingering-potion behavior providing Vanillaβs potion-content-dependent name.
- Mace
Item - Vanilla mace item combat behavior.
- Name
TagItem - Vanilla name tag behavior.
- Place
OnWater Block Item - blockitem behavior for lily pad and frog spawn.
- Player
Head Item - Player-head placement behavior with the profile-specific name.
- Potion
Item - Potion behavior providing Vanillaβs potion-content-dependent name.
- Scaffolding
Block Item - Vanilla scaffoldingβs directional extension placement.
- Shears
Item - Behavior for shears.
- 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.
- Snowball
Item - Behavior for the snowball item.
- Solid
Bucket Item - Behavior for buckets that place a solid block, such as powder snow.
- Spawn
EggItem - Behavior for every data-driven
SpawnEggItemregistry entry. - Splash
Potion Item - Splash-potion behavior providing Vanillaβs potion-content-dependent name.
- Spyglass
Item - Vanilla spyglass active-use behavior.
- 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.