Class AllowedBlock

java.lang.Object
org.cyclops.cyclopscore.block.multi.AllowedBlock

public class AllowedBlock extends Object
Holder class for the allowed blocks in a structure.
  • Constructor Details

    • AllowedBlock

      public AllowedBlock(net.minecraft.world.level.block.Block block)
      Make a new instance.
      Parameters:
      block - The allowed block.
  • Method Details

    • addCountValidator

      public AllowedBlock addCountValidator(IBlockCountValidator countValidator)
      Add a count validator
      Parameters:
      countValidator - The count validator.
      Returns:
      This instance.
    • getCountValidators

      public List<IBlockCountValidator> getCountValidators()
      Returns:
      The count validators
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()
      Returns:
      the block
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object