Class MinimumBlockCountValidator
java.lang.Object
org.cyclops.cyclopscore.block.multi.MinimumBlockCountValidator
- All Implemented Interfaces:
IBlockCountValidator
A minimum block count validator.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
isValid
(int count, boolean structureComplete, net.minecraft.world.level.block.Block block) Check if the block count is valid.
-
Constructor Details
-
MinimumBlockCountValidator
public MinimumBlockCountValidator()
-
-
Method Details
-
isValid
public net.minecraft.network.chat.Component isValid(int count, boolean structureComplete, net.minecraft.world.level.block.Block block) Description copied from interface:IBlockCountValidator
Check if the block count is valid.- Specified by:
isValid
in interfaceIBlockCountValidator
- Parameters:
count
- The block count up until now.structureComplete
- If this check is done once the structure is fully complete.block
- The block to check, used as reference for the error.- Returns:
- Null if the location is valid, otherwise the error message.
-