Interface Equippable.Builder
- All Superinterfaces:
- DataComponentBuilder<Equippable>
- Enclosing interface:
- Equippable
@Experimental
@NonExtendable
public static interface Equippable.Builder
extends DataComponentBuilder<Equippable>
Builder for 
Equippable.- 
Method SummaryModifier and TypeMethodDescriptionallowedEntities(@Nullable RegistryKeySet<EntityType> allowedEntities) Sets the allowed entities that can equip this item.Sets the asset id for this item.cameraOverlay(@Nullable Key cameraOverlay) Sets the camera overlay key for this item.canBeSheared(boolean canBeSheared) Sets whether the item can be sheared off an entity.damageOnHurt(boolean damageOnHurt) Sets whether the item takes damage when the wearer is hurt.dispensable(boolean dispensable) Sets whether the item is dispensable.equipOnInteract(boolean equipOnInteract) Sets whether the item should be equipped when interacting with an entity.equipSound(Key sound) Sets the equip sound key for this item.shearSound(Key shearSound) Sets the sound that is played when shearing this equipment off an entity.swappable(boolean swappable) Sets whether the item is swappable.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilderbuild
- 
Method Details- 
equipSoundSets the equip sound key for this item.- Parameters:
- sound- the equip sound key
- Returns:
- the builder for chaining
 
- 
assetIdSets the asset id for this item.- Parameters:
- assetId- the asset id, nullable
- Returns:
- the builder for chaining
 
- 
cameraOverlay@Contract(value="_ -> this", mutates="this") Equippable.Builder cameraOverlay(@Nullable Key cameraOverlay) Sets the camera overlay key for this item.- Parameters:
- cameraOverlay- the camera overlay key, nullable
- Returns:
- the builder for chaining
 
- 
allowedEntities@Contract(value="_ -> this", mutates="this") Equippable.Builder allowedEntities(@Nullable RegistryKeySet<EntityType> allowedEntities) Sets the allowed entities that can equip this item.- Parameters:
- allowedEntities- the set of allowed entity types, or null if any
- Returns:
- the builder for chaining
 
- 
dispensableSets whether the item is dispensable.- Parameters:
- dispensable- true if dispensable
- Returns:
- the builder for chaining
 
- 
swappableSets whether the item is swappable.- Parameters:
- swappable- true if swappable
- Returns:
- the builder for chaining
 
- 
damageOnHurtSets whether the item takes damage when the wearer is hurt.- Parameters:
- damageOnHurt- true if it damages on hurt
- Returns:
- the builder for chaining
 
- 
equipOnInteract@Contract(value="_ -> this", mutates="this") Equippable.Builder equipOnInteract(boolean equipOnInteract) Sets whether the item should be equipped when interacting with an entity.- Parameters:
- equipOnInteract- true if it equips on interact
- Returns:
- the builder for chaining
 
- 
canBeShearedSets whether the item can be sheared off an entity.- Parameters:
- canBeSheared- true if can be sheared off an entity
- Returns:
- the builder for chaining
 
- 
shearSoundSets the sound that is played when shearing this equipment off an entity.- Parameters:
- shearSound- the shear sound key
- Returns:
- the builder for chaining
 
 
-