Annotation Interface SoundTranslator
Marks if a class should be handled as a
 
SoundInteractionTranslator.- 
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]The identifier(s) that the placed block must contain one of.String[]The identifier(s) that the interacted entity must have.booleanControls if the interaction should still be called even if the player is sneaking while holding something in their hand.String[]The identifier(s) that the player's hand item must contain one of. 
- 
Element Details
- 
blocks
String[] blocksThe identifier(s) that the placed block must contain one of. Leave empty to ignore. Only applies to interaction handlers that are an instance ofBlockSoundInteractionTranslator.- Returns:
 - the value the interacted block must contain
 
- Default:
 - {}
 
 - 
items
String[] itemsThe identifier(s) that the player's hand item must contain one of. Leave empty to ignore.- Returns:
 - the value the item in the player's hand must contain
 
- Default:
 - {}
 
 - 
entities
String[] entitiesThe identifier(s) that the interacted entity must have. Leave empty to ignore. Only applies to interaction handlers that are an instance ofEntitySoundInteractionTranslator.- Returns:
 - the value the item in the player's hand must contain
 
- Default:
 - {}
 
 - 
ignoreSneakingWhileHolding
boolean ignoreSneakingWhileHoldingControls if the interaction should still be called even if the player is sneaking while holding something in their hand.- Returns:
 - if the interaction should continue when player is holding something in their hand
 
- Default:
 - false
 
 
 -