Gets the MaterialData class associated with this Material @return MaterialData associated with this Material
()
| 3665 | * @return MaterialData associated with this Material |
| 3666 | */ |
| 3667 | @NotNull |
| 3668 | public Class<? extends MaterialData> getData() { |
| 3669 | Validate.isTrue(legacy, "Cannot get data class of Modern Material"); |
| 3670 | return ctor.getDeclaringClass(); |
| 3671 | } |
| 3672 | |
| 3673 | /** |
| 3674 | * Constructs a new MaterialData relevant for this Material, with the |