Skip to content

Commit

Permalink
Javadoc for HitBoxes + inline var
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Oct 17, 2024
1 parent 9c139a5 commit a6ecf89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mcjty/theoneprobe/config/TopModConfigGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ private static List<IConfigElement> getConfigElements() {
};

// Create configuration elements for the main categories
List<IConfigElement> configElements = Arrays.stream(categories)
return Arrays.stream(categories)
.map(category -> new ConfigElement(ConfigSetup.mainConfig.getCategory(category)))
.collect(Collectors.toList());

return configElements;
}
}
6 changes: 6 additions & 0 deletions src/main/java/mcjty/theoneprobe/gui/HitBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;


/**
* HitBox's are basically buttons. They can be used by a GUI for actions when pressed
*
* @author McJty
*/
@SideOnly(Side.CLIENT)
class HitBox {
private final int x1;
Expand Down

0 comments on commit a6ecf89

Please sign in to comment.