Package net.citizensnpcs.api.npc
Class BlockBreaker.BlockBreakerConfiguration
java.lang.Object
net.citizensnpcs.api.npc.BlockBreaker.BlockBreakerConfiguration
- Enclosing class:
 BlockBreaker
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidblockBreaker(BiConsumer<Block, ItemStack> breaker) floatblockStrengthModifier(float modifier) callback()item()doubleradius()radius(double radius)  
- 
Constructor Details
- 
BlockBreakerConfiguration
public BlockBreakerConfiguration() 
 - 
 - 
Method Details
- 
blockBreaker
 - 
blockBreaker
- Parameters:
 breaker- The function that actually breaks the block. By default, this will callBlock.breakNaturally(ItemStack)
 - 
blockStrengthModifier
public 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)
 - 
radius
public 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.
 
 -