Uses of Interface
io.papermc.paper.datacomponent.item.consumable.ConsumeEffect
Packages that use ConsumeEffect
Package
Description
-
Uses of ConsumeEffect in io.papermc.paper.datacomponent.item
Methods in io.papermc.paper.datacomponent.item that return types with arguments of type ConsumeEffectMethods in io.papermc.paper.datacomponent.item with parameters of type ConsumeEffectModifier and TypeMethodDescriptionConsumable.Builder.addEffect
(ConsumeEffect effect) Adds a singleConsumeEffect
to the consumable item being built.DeathProtection.Builder.addEffect
(ConsumeEffect effect) Method parameters in io.papermc.paper.datacomponent.item with type arguments of type ConsumeEffectModifier and TypeMethodDescriptionConsumable.Builder.addEffects
(List<ConsumeEffect> effects) Adds multipleConsumeEffect
instances to the consumable item being built.DeathProtection.Builder.addEffects
(List<ConsumeEffect> effects) static DeathProtection
DeathProtection.deathProtection
(List<ConsumeEffect> deathEffects) Consumable.Builder.effects
(List<ConsumeEffect> effects) Sets the effects that occur when an item is consumed. -
Uses of ConsumeEffect in io.papermc.paper.datacomponent.item.consumable
Subinterfaces of ConsumeEffect in io.papermc.paper.datacomponent.item.consumableModifier and TypeInterfaceDescriptionstatic interface
Represents a consumable effect that applies potion effects based on a probability on consumption.static interface
Represents a consumable effect that clears all effects on consumption.static interface
Represents a consumable effect that plays a sound on consumption.static interface
Represents a consumable effect that removes status effects on consumption.static interface
Represents a consumable effect that randomly teleports the entity on consumption.