isRedstoneMachine
Determines if the current Material instance represents a redstone-related machine or component.
This method evaluates whether the material belongs to the redstone creative category, and matches specific materials or naming conventions associated with redstone machines.
A material is considered a redstone machine if:
It belongs to the
CreativeCategory.REDSTONE.It explicitly matches specific redstone-related materials (e.g.,
REDSTONE_TORCH,COMPARATOR,REPEATER, etc.).Its name contains certain keywords such as "PISTON", "BUTTON", "PRESSURE_PLATE", "DETECTOR", or "LAMP".
Return
true if the material is a redstone machine, otherwise false.