Fabric API

Fabric API

108M Downloads

Some methods in the FabricBlockSettings class unnecessarily use accessors

haykam821 opened this issue ยท 1 comments

commented

In particular, hardness and resistance have public vanilla equivalents:

public FabricBlockSettings hardness(float hardness) {
((AbstractBlockSettingsAccessor) this).setHardness(hardness);
return this;
}
public FabricBlockSettings resistance(float resistance) {
((AbstractBlockSettingsAccessor) this).setResistance(Math.max(0.0F, resistance));
return this;
}

commented

See #2741