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 πŸ”’
block_item πŸ”’
Block item behavior implementation.
block_transformer πŸ”’
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 and sign text.
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.
hanging_sign_item πŸ”’
Hanging sign item behavior implementation. Wall and standing signs are handled by StandingAndWallBlockItem, not here.
honeycomb πŸ”’
ink_sac πŸ”’
Ink sac and glow ink sac sign applicators.
lead πŸ”’
mace πŸ”’
minecart πŸ”’
name_tag πŸ”’
place_on_water_block_item πŸ”’
player_head πŸ”’
potion πŸ”’
scaffolding_block_item πŸ”’
shears πŸ”’
Shears item behavior (ShearsItem).
shield πŸ”’
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.
throw_projectile πŸ”’
Shared item use logic for throwing projectiles
throwable_potion πŸ”’
Splash/lingering potion item behaviors (SplashPotionItem, LingeringPotionItem).
tipped_arrow πŸ”’

StructsΒ§

AirItem
Air behavior using the item type’s prototype name like Vanilla AirItem.
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
A bucket holding content, or the empty bucket when content is the empty fluid.
CompassItem
Compass item behavior.
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
Food on a stick item behavior.
GlowInkSacItem
Makes sign text glow.
HangingSignItem
Behavior for hanging sign items that place hanging sign blocks.
HoneycombItem
Behavior for the honeycomb item. Waxes copper blocks and signs.
InkSacItem
Removes glow from sign text.
LeadItem
Vanilla lead item behavior.
LingeringPotionItem
Lingering-potion behavior providing Vanilla’s potion-content-dependent name and the water default instance inherited from PotionItem.
MaceItem
Vanilla mace item combat behavior.
MinecartItem
Item behavior for minecart entity.
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 and water default instance.
ScaffoldingBlockItem
Vanilla scaffolding’s directional extension placement.
ShearsItem
Behavior for shears.
ShieldItem
Shield behavior providing the base-color-specific name.
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 and the water default instance inherited from PotionItem.
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 and poison default instance.