Package net.citizensnpcs.api.npc
Class BlockBreaker.BlockBreakerConfiguration
java.lang.Object
net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- Enclosing class:
- BlockBreaker
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidblockBreaker(BiConsumer<Block, ItemStack> breaker) floatblockStrengthModifier(float modifier) callback()item()doubleradius()radius(double radius) 
- 
Constructor Details- 
BlockBreakerConfigurationpublic BlockBreakerConfiguration()
 
- 
- 
Method Details- 
blockBreaker
- 
blockBreaker- Parameters:
- breaker- The function that actually breaks the block. By default, this will call- Block.breakNaturally(ItemStack)
 
- 
blockStrengthModifierpublic float blockStrengthModifier()
- 
blockStrengthModifier- Parameters:
- modifier- The block strength modifier
 
- 
callback
- 
callback- Parameters:
- callback- A callback that is run on completion
 
- 
item
- 
item- Parameters:
- stack- The item to simulate the NPC using to break the block (e.g. an axe for wood)
 
- 
radiuspublic double radius()
- 
radius- Parameters:
- radius- The maximum radius to be from the target block. The NPC will attempt to pathfind towards the target block if this is specified and it is outside of the radius.
 
 
-