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 πŸ”’
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 DyeItem behavior: 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
BlockItem
Behavior for items that place blocks.
BoneMealItem
Behavior for the Bonemeal item.
BottleItem
Behavior for the glass bottle item.
BrushItem
Vanilla brush item behavior for continuous archaeology brushing.
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.).
DyeItem
Behavior for the sixteen dye items (DyeItem).
EggItem
Behavior for the egg item.
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.
FishingRodItem
Behavior for the fishing rod item.
FlintAndSteelItem
Behavior for flint and steel items.
FoodOnAStickItem
Behavior for vanilla FoodOnAStickItem.
GlowInkSacItem
Behavior for the glow ink sac item. Makes sign text glow.
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.
InkSacItem
Behavior for the ink sac item. Removes glow from sign text.
LeadItem
Vanilla lead item behavior.
LingeringPotionItem
Lingering-potion behavior providing Vanilla’s potion-content-dependent name.
MaceItem
Vanilla mace item combat behavior.
NameTagItem
Vanilla name tag behavior.
PlaceOnWaterBlockItem
blockitem behavior for lily pad and frog spawn.
PlayerHeadItem
Player-head placement behavior with the profile-specific name.
PotionItem
Potion behavior providing Vanilla’s potion-content-dependent name.
ScaffoldingBlockItem
Vanilla scaffolding’s directional extension placement.
ShearsItem
Behavior for shears.
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.
SnowballItem
Behavior for the snowball item.
SolidBucketItem
Behavior for buckets that place a solid block, such as powder snow.
SpawnEggItem
Behavior for every data-driven SpawnEggItem registry entry.
SplashPotionItem
Splash-potion behavior providing Vanilla’s potion-content-dependent name.
SpyglassItem
Vanilla spyglass active-use behavior.
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.