Class AllowedBlock
java.lang.Object
org.cyclops.cyclopscore.block.multi.AllowedBlock
Holder class for the allowed blocks in a structure.
-
Constructor Summary
ConstructorDescriptionAllowedBlock
(net.minecraft.world.level.block.Block block) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddCountValidator
(IBlockCountValidator countValidator) Add a count validatorboolean
net.minecraft.world.level.block.Block
getBlock()
int
hashCode()
-
Constructor Details
-
AllowedBlock
public AllowedBlock(net.minecraft.world.level.block.Block block) Make a new instance.- Parameters:
block
- The allowed block.
-
-
Method Details
-
addCountValidator
Add a count validator- Parameters:
countValidator
- The count validator.- Returns:
- This instance.
-
getCountValidators
- Returns:
- The count validators
-
getBlock
public net.minecraft.world.level.block.Block getBlock()- Returns:
- the block
-
equals
-
hashCode
public int hashCode()
-