Skip to content

Commit

Permalink
Update 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox2Code committed May 13, 2023
1 parent b217d3f commit a520e30
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ public BlockBuilder setTooltipColor(Color color) {
return this.setTooltipColor(color.getRGB());
}

public void setEffectiveTool(RegisteredToolType registeredToolType) {
public BlockBuilder setEffectiveTool(RegisteredToolType registeredToolType) {
this.effectiveToolBit |= (byte)(this.effectiveToolBit | 1 << registeredToolType.ordinal());
return this;
}

public void setEffectiveTools(RegisteredToolType... registeredToolTypes) {
public BlockBuilder setEffectiveTools(RegisteredToolType... registeredToolTypes) {
for (RegisteredToolType registeredToolType : registeredToolTypes) {
this.setEffectiveTool(registeredToolType);
}
return this;
}
}

0 comments on commit a520e30

Please sign in to comment.