Skip to main content

Module items

Module items 

Source
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
BlockItem
Behavior for items that place blocks.
BoneMealItem
Behavior for the Bonemeal item.
BucketItem
Handles all bucket variants (empty, water, lava).
CompassItem
Compass behavior providing the lodestone-specific name.
DefaultItemBehavior
Vanilla’s base item behavior.
DoubleHighBlockItem
Behavior for double-high block items (doors, tall flowers, etc.).
EnderEyeItem
Behavior for the ender eye item.
EnderPearlItem
Behavior for the ender pearl item.
FireChargeItem
Behavior for fire charge items.
FireworkRocketItem
Behavior for the firework rocket item.
FlintAndSteelItem
Behavior for flint and steel items.
FoodOnAStickItem
Behavior for vanilla FoodOnAStickItem.
HangingSignItem
Behavior for hanging sign items that place hanging sign blocks.
HoeItem
Behavior for Hoes
HoneycombItem
Behavior for the honeycomb item. Waxes copper blocks and signs.
LingeringPotionItem
Lingering-potion behavior providing Vanilla’s potion-content-dependent name.
MaceItem
Vanilla mace item combat behavior.
PlayerHeadItem
Player-head placement behavior with the profile-specific name.
PotionItem
Potion behavior providing Vanilla’s potion-content-dependent name.
ShieldItem
Shield behavior providing the base-color-specific name.
ShovelItem
Behavior for Shovels, extinguishes campfires and turns grass blocks into paths
SignItem
Behavior for sign items that place sign blocks and open the editor.
SplashPotionItem
Splash-potion behavior providing Vanilla’s potion-content-dependent name.
StandingAndWallBlockItem
Behavior for items that place either a standing or wall variant of a block.
TippedArrowItem
Tipped-arrow behavior providing Vanilla’s potion-content-dependent name.