Skip to content

Fairly Large Cleanup#581

Draft
strubium wants to merge 4 commits intonextfrom
strubium/fairly-large-cleanup
Draft

Fairly Large Cleanup#581
strubium wants to merge 4 commits intonextfrom
strubium/fairly-large-cleanup

Conversation

@strubium
Copy link
Copy Markdown
Contributor

📝 Description

This removes the crazy amount of floats that use .0f when it is unneeded

🎯 Goals

  • removes the crazy amount of floats that use .0f when it is unneeded
  • Lag out Desoroxxx's computer

❌ Non Goals

  • Completely change our code style (Our docs say "every whole number with a forced float configuration like 1.0F should be replaced with 1 for clarity and simplicity sake")

🚦 Testing

It builds, and I did a little bit of fights against some terrorists to make sure everything worked correctly

⏮️ Backwards Compatibility

N/A

📖 Added to documentation?

  • 📜 README.md
  • 📑 Documentation
  • 📓 Javadoc
  • 🍕 Comments
  • 🙅 No documentation needed

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 18, 2025

📝 Walkthrough

Walkthrough

This pull request standardizes numeric representations throughout the codebase by replacing floating-point literals with integer literals. Changes are applied in various transformation and rendering methods—including OpenGL calls (e.g., GL11.glTranslatef, glScaled), model construction methods (setRotationPoint, ModelBox, setRotationAngle), and AI configuration parameters—across gun factory classes, turret gun factories, and model classes. No functionality, control flow, or public API has been altered; the modifications strictly adjust the literal formatting without changing the underlying logic.

Changes

File(s) Change Summary
src/main/java/com/paneedah/mwc/asm/Interceptors.java, src/main/java/com/paneedah/mwc/entities/Entities.java Replaced floating-point literals with integer literals in conditional checks, rendering calculations, and AI task parameters.
src/main/java/com/paneedah/mwc/items/guns/*Factory.java (including turret sub-packages) Updated transformation methods (e.g. withScale, GL11.glTranslatef, glScaled) to use integer literals instead of floats, standardizing numeric values in gun rendering configurations.
src/main/java/com/paneedah/mwc/models/* Modified model rendering code by replacing floating-point values with integers in methods such as setRotationPoint, ModelBox instantiation, and setRotationAngle to ensure consistent formatting.

Sequence Diagram(s)

(No sequence diagrams provided as there are no new control flow features.)

Suggested labels

Enhancement, Optimization

Suggested reviewers

  • Desoroxxx

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between c9eeab5 and a28fc89.

📒 Files selected for processing (107)
  • src/main/java/com/paneedah/mwc/asm/ClassInfo.java (2 hunks)
  • src/main/java/com/paneedah/mwc/asm/Interceptors.java (14 hunks)
  • src/main/java/com/paneedah/mwc/bases/ItemBase.java (1 hunks)
  • src/main/java/com/paneedah/mwc/entities/Entities.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AACHoneyBadgerFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ACRFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK101Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK12Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK12_kalFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK15Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK47Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK74Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/APC9Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/APSFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AR10SuperSASSFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AR15Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ARX160Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AUGFactory.java (12 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Beowulf50CalFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/CZ805BrenFactory.java (8 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ChainsawFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ChiappaRhinoFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/DSR1Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/DesertEagleFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/F2000Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FMG9Factory.java (8 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FNFALFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FamasF1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FiveSevenFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G11Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G36CFactory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G3Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Glock18CFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Glock19Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/HK417Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/HK_P12Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/K2C1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KBP9A91Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KS23Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KrissVectorFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M110Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M16A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M16A4Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M17Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M1897Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M249Factory.java (13 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M32MGLFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M38Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M40A6Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M4A1Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M712Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M82Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M9A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MAC10Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP443Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP5A5Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP7Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MPXFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MakarovPMFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MalyukFactory.java (12 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Mk14EBRFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/NGSWRFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/NinthSinFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Origin12Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/P226Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/P90Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/PythonFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Remington870Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/S710TricunFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SCCYCPX2Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SIG556Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SIGMCXFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SSG08Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SV98Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SVDDragunovFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScarHFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScarLFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScorpionEVO3A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Spas12Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/TaurusRagingHunterFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Type20Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/UMP45Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/UziFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/VP70Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/VSSVintorezFactory.java (9 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ZbroyarZ10Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunSilencedFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunUpgradedFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadger.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerReceiver.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerSilencer.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACKnightsArmamentReceiver.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACMatrixArmsHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACOG.java (3 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRAction.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRAction2.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRFixedStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRHandGuard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRLongRangeStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPDWStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPRSStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPolymerHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPrecisionHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRSBRHandguard.java (1 hunks)
⛔ Files not processed due to max files limit (6)
  • src/main/java/com/paneedah/mwc/models/ACRSquareDropHandguard.java
  • src/main/java/com/paneedah/mwc/models/ACRStock.java
  • src/main/java/com/paneedah/mwc/models/ACRWEMSKHandguard.java
  • src/main/java/com/paneedah/mwc/models/AE86Trueno.java
  • src/main/java/com/paneedah/mwc/models/AE86TruenoSteeringWheel.java
  • src/main/java/com/paneedah/mwc/models/AE86TruenoWheel.java

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@@ -365,14 +365,14 @@
boolean bulletAtPowdering = false;
boolean bulletAtPress = false;

for (float i = 0; i < 2 * Math.PI; i += Math.PI / 6.0f) {
for (float i = 0; i < 2 * Math.PI; i += Math.PI / 6) {

Check failure

Code scanning / CodeQL

Implicit narrowing conversion in compound assignment High

Implicit cast of source type double to narrower destination type
float
.

Copilot Autofix

AI about 1 year ago

To fix the problem, we need to ensure that the type of the left-hand side of the compound assignment statement is at least as wide as the type of the right-hand side. In this case, we should change the type of the variable i from float to double. This will prevent the implicit narrowing conversion and maintain the precision of the calculations.

Suggested changeset 1
src/main/java/com/paneedah/weaponlib/crafting/ammopress/model/AmmoPress.java

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/src/main/java/com/paneedah/weaponlib/crafting/ammopress/model/AmmoPress.java b/src/main/java/com/paneedah/weaponlib/crafting/ammopress/model/AmmoPress.java
--- a/src/main/java/com/paneedah/weaponlib/crafting/ammopress/model/AmmoPress.java
+++ b/src/main/java/com/paneedah/weaponlib/crafting/ammopress/model/AmmoPress.java
@@ -367,3 +367,3 @@
 
-        for (float i = 0; i < 2 * Math.PI; i += Math.PI / 6) {
+        for (double i = 0; i < 2 * Math.PI; i += Math.PI / 6) {
 
EOF
@@ -367,3 +367,3 @@

for (float i = 0; i < 2 * Math.PI; i += Math.PI / 6) {
for (double i = 0; i < 2 * Math.PI; i += Math.PI / 6) {

Copilot is powered by AI and may make mistakes. Always verify output.
@@ -842,7 +842,7 @@

prevWheelRotationAngle = wheelRotationAngle;
double angVel = getRealSpeed();
wheelRotationAngle += angVel % 360; // wheelRotationAngle = 0.0f;
wheelRotationAngle += angVel % 360; // wheelRotationAngle = 0;

Check failure

Code scanning / CodeQL

Implicit narrowing conversion in compound assignment High

Implicit cast of source type double to narrower destination type
float
.

Copilot Autofix

AI about 1 year ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (21)
src/main/java/com/paneedah/mwc/items/guns/M32MGLFactory.java (1)

1233-1233: Optimize Numeric Literal Representation

The change from -2.000000f to -2 in the GL11.glTranslatef call aligns with the PR’s objective of removing needless float suffixes on whole numbers. Since the method expects float parameters, an integer literal is implicitly widened to a float without impacting functionality. For clarity and consistency, please ensure that such replacements are applied uniformly across the file wherever a whole number is unnecessarily expressed with a float suffix.

src/main/java/com/paneedah/mwc/items/guns/MP7Factory.java (9)

291-299: Standardizing Numeric Literals in Laser Attachments
The calls to GL11.glTranslatef for the Laser and Laser2 attachments now pass -0 instead of -0.0F. This change removes an unnecessary float suffix for a whole‐number literal, making the code clearer and more consistent with the guidelines.


300-303: Consistent Scale Literal in SilencerMP7 Attachment
In the call to GL11.glScaled for the SilencerMP7 attachment, the third argument has been changed from a float literal (1.0F) to an integer literal (1). This meets the objective of eliminating excess float formatting without impacting the behavior.


329-333: Updated Transformation Scale in First Person Positioning
Within the Transform used for first person positioning, the scale is now specified as (3, 3, 3) instead of using float literals (e.g. 3.0F). This update simplifies the literal representation for whole numbers and adheres to the documentation guidelines.


571-576: Integer Literal for Scale Parameter in Hand Positioning
In the first person hand positioning modifications, the Z-scale value is now provided as an integer (4) rather than 4.0F. This small but consistent change improves clarity and enforces the coding style across the file.


291-299: Standardizing Numeric Literals in Laser Attachments
Similar to the other MP7Factory file, the GL11 calls for the Laser and Laser2 attachments now use -0 rather than -0.0F. This small change removes unnecessary formatting and improves consistency.


300-303: Consistent Scale Literal in SilencerMP7 Attachment
The scale factor in the silencer attachment call now uses an integer literal (1) for the Z-axis instead of a redundant float literal. This change makes the numeric literal clearer and aligns with the cleanup objectives.


329-333: Updated Transformation Scale in First Person Positioning
The first person positioning transformation now calls .withScale(3, 3, 3)—using integers rather than floats for whole numbers—thus standardizing the numeric representation.


571-576: Integer Literal for Scale Parameter in Hand Positioning
The hand positioning transformation now specifies its Z-scale as 4 (an integer) rather than as a float, meeting the PR goal to drop unnecessary .0F declarations.


368-727: Consistent Numeric Literal Updates in Reload Animation Transitions
A large block of reload animation transitions (lines 368–727) has been updated so that parameters which are whole numbers now use plain integer literals. This systematic change across the numerous Transition calls improves readability while keeping the animation timings and transformations intact.

src/main/java/com/paneedah/mwc/models/AACMatrixArmsHandguard.java (4)

28-67: Refined Numeric Literals in Model Transformations
Across the handguard model, many method calls (such as setRotationPoint and the various ModelBox instantiations) now use integer literals (e.g. 0 instead of 0.0F) where the value is whole. This refines the literal formatting and makes the code easier to read while preserving the fractional values where needed (such as -38.5F or -54.7F).


70-91: Consistent Rotation Angle Declarations
The calls to setRotationAngle (for example on bone and its children) now pass plain zero values as integers rather than floats. This small adjustment removes unnecessary float suffixes, ensuring that zero values are represented uniformly across the model.


93-110: Uniform Format for Model Dimensions
In the bone4 segment, the ModelBox constructors have been updated so that any whole‐number dimensions are now represented using integer literals. This change helps enforce consistency within the model’s definition without changing the visual outcome.


128-145: Standardized Numeric Literals in Bone Transformations
For the latter part of the model (e.g. the bone5 segment), the adjustments avoid redundant float formats for whole values. These changes follow the overall objective to simplify numeric representations and improve code clarity across model sections.

src/main/java/com/paneedah/mwc/models/AACHoneyBadger.java (3)

58-113: Comprehensive Update of Numeric Literals in AACHoneyBadger Model
Within the AACHoneyBadger model constructor, many changes ensure that literal values which are whole numbers are represented as integers (for example in the setRotationPoint and ModelBox calls). Fractional values remain intact. This promotes overall consistency and simplifies the code in accordance with the cleanup guidelines.


113-119: Refinement in Child Model Transformations (gun745_r1)
For the gun745_r1 sub-component, the calls to setRotationPoint and setRotationAngle now use integer literals where applicable. This update aligns with the goal of removing superfluous float suffixes while preserving the intended transformation values.


120-343: Uniform Numeric Literal Updates in AACHoneyBadger Model
Across the remainder of the model (including various gun part definitions and transformation calls), the changes consistently replace unnecessary .0F suffixes with integer values wherever the number is whole. This standardization heightens readability and adheres to the project’s numeric formatting conventions without altering the model’s design.

src/main/java/com/paneedah/mwc/items/guns/Origin12Factory.java (3)

91-117: Standardize Numeric Literals in Attachment Transformations
In several attachment configuration blocks (for attachments such as CollapsableMOEStock, MagpulCTRStock, MilSpecStock, etc.), the second parameter of GL11.glTranslatef has been changed from a redundant float (e.g. -0.0f) to an integer literal (-0). This change removes unnecessary forced float formatting for whole-number values and improves clarity without altering functionality.


387-389: Use Integer Literals for Whole-Number Scale Parameters
The change in the first-person positioning block replacing .withScale(3.000000f, 3.000000f, 3.000000f) with .withScale(3, 3, 3) is exactly in line with the PR objective. This refactoring simplifies the numeric representation by using integers where no decimal precision is necessary.


523-527: Eliminate Unnecessary Float Notation in Translation Call
The update in the first-person zoom positioning—from using 0.0f in the z-translation parameter to simply 0—further enforces the intended cleanup of redundant float designators for whole numbers. This change is purely cosmetic but enhances the code’s readability.

src/main/java/com/paneedah/mwc/models/AACHoneyBadgerReceiver.java (1)

223-1282: Consistent Numeric Literal Refactoring Across Model Definitions
Throughout the AACHoneyBadgerReceiver class, numerous calls to transformation methods (including setRotationPoint, setRotationAngle, and the parameters of ModelBox constructions) have been updated to replace whole-number float literals (e.g. -7.0F) with integer literals (e.g. -7). This widespread cleanup is fully in line with the PR objective and contributes to improved clarity and consistency in the model code without affecting runtime behavior.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c9eeab5 and 7840f8b.

📒 Files selected for processing (107)
  • src/main/java/com/paneedah/mwc/asm/Interceptors.java (14 hunks)
  • src/main/java/com/paneedah/mwc/entities/Entities.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AACHoneyBadgerFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ACRFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK101Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK12Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK12_kalFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK15Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK47Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AK74Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/APC9Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/APSFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AR10SuperSASSFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AR15Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ARX160Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/AUGFactory.java (12 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Beowulf50CalFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/CZ805BrenFactory.java (8 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ChainsawFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ChiappaRhinoFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/DSR1Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/DesertEagleFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/F2000Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FMG9Factory.java (8 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FNFALFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FamasF1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/FiveSevenFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G11Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G36CFactory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/G3Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Glock18CFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Glock19Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/HK417Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/HK_P12Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/K2C1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KBP9A91Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KS23Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/KrissVectorFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M110Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M16A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M16A4Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M17Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M1897Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M249Factory.java (13 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M32MGLFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M38Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M40A6Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M4A1Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M712Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M82Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/M9A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MAC10Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP443Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP5A5Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MP7Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MPXFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MakarovPMFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/MalyukFactory.java (12 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Mk14EBRFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/NGSWRFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/NinthSinFactory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Origin12Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/P226Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/P90Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/PythonFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Remington870Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/S710TricunFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SCCYCPX2Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SIG556Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SIGMCXFactory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SSG08Factory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SV98Factory.java (1 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/SVDDragunovFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScarHFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScarLFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ScorpionEVO3A1Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Spas12Factory.java (2 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/TaurusRagingHunterFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/Type20Factory.java (5 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/UMP45Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/UziFactory.java (4 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/VP70Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/VSSVintorezFactory.java (9 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/ZbroyarZ10Factory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunSilencedFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunUpgradedFactory.java (3 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadger.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerReceiver.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerSilencer.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACHoneyBadgerStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACKnightsArmamentReceiver.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/AACMatrixArmsHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACOG.java (3 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRAction.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRAction2.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRFixedStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRHandGuard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRLongRangeStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPDWStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPRSStock.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPolymerHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRPrecisionHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRSBRHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRSquareDropHandguard.java (1 hunks)
  • src/main/java/com/paneedah/mwc/models/ACRStock.java (1 hunks)
⛔ Files not processed due to max files limit (4)
  • src/main/java/com/paneedah/mwc/models/ACRWEMSKHandguard.java
  • src/main/java/com/paneedah/mwc/models/AE86Trueno.java
  • src/main/java/com/paneedah/mwc/models/AE86TruenoSteeringWheel.java
  • src/main/java/com/paneedah/mwc/models/AE86TruenoWheel.java
🧰 Additional context used
🧬 Code Definitions (3)
src/main/java/com/paneedah/mwc/items/guns/MP7Factory.java (1)
src/main/java/com/paneedah/mwc/weapons/Magazines.java (1) (1)
  • Magazines (12:3204)
src/main/java/com/paneedah/mwc/items/guns/VSSVintorezFactory.java (1)
src/main/java/com/paneedah/weaponlib/Weapon.java (1) (1)
  • Weapon (62:1628)
src/main/java/com/paneedah/mwc/items/guns/MalyukFactory.java (1)
src/main/java/com/paneedah/mwc/weapons/Magazines.java (1) (1)
  • Magazines (12:3204)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (java-kotlin)
🔇 Additional comments (318)
src/main/java/com/paneedah/mwc/items/guns/K2C1Factory.java (3)

404-404: Simplified float representation.

Changed from withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3), removing unnecessary float declarations for whole numbers.


413-413: Simplified float representation.

Changed from withScale(2.6F, 2.6F, 4.0F) to withScale(2.6F, 2.6F, 4), removing the redundant .0F suffix on the whole number while keeping decimal values as floats.


612-612: Simplified float representation.

Changed from withScale(2.6F, 2.6F, 4.0F) to withScale(2.6F, 2.6F, 4), maintaining code consistency by removing redundant .0F suffix.

src/main/java/com/paneedah/mwc/items/guns/M712Factory.java (1)

136-136: Simplified float representation.

Changed from GL11.glTranslatef(-0.3f, 0.8f, -2.0f) to GL11.glTranslatef(-0.3f, 0.8f, -2), removing unnecessary float declaration for the whole number. This simplifies the code while maintaining functionality, as integers are automatically promoted to floats in this context.

src/main/java/com/paneedah/mwc/items/guns/SV98Factory.java (1)

1006-1006: Numeric Literal Simplification in First-Person Running Positioning
At line 1006 the call

GL11.glTranslatef(-0.300000f, 1.4f, -0);

replaces what was previously a float literal for zero (e.g. “-0.0f”) with an integer literal (“-0”). This change is in line with the PR objective of removing unnecessary float suffixes for whole numbers. Be sure that any API expecting a float will accept this via implicit conversion.

src/main/java/com/paneedah/mwc/models/ACRAction.java (2)

23-25: Standardizing ModelBox Constructor Numeric Parameters
In lines 23–25, the final parameter of each ModelBox constructor call has been changed from a float literal (e.g. 0.0F) to an integer literal (0). This improves clarity and consistency across the codebase without affecting functionality.


31-31: Consistent Literal Usage in Child ModelBox Construction
At line 31, a similar change has been applied in the ACRAction4_r1_r1 cube list where the final value is now given as 0 instead of 0.0F. This update follows the project-wide guideline to use integer literals when no fractional precision is needed.

src/main/java/com/paneedah/mwc/items/guns/ChainsawFactory.java (1)

36-36: Replace Unnecessary Float Literal in Bleeding Coefficient Setting
At line 36 the parameter passed to .withBleedingCoefficient() has been changed from a float literal (presumably 40.0F) to an integer literal (40). Please ensure that the method’s signature accepts this value either directly as an integer or via implicit conversion to maintain functionality. This change adheres to the PR objective of simplifying numeric representations.

src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunSilencedFactory.java (3)

87-87: Simplified scale representation by using integers instead of floats for whole numbers.

The change from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) removes unnecessary floating-point notation while maintaining the same functionality, as Java will automatically promote integers to floats when needed.


96-96: Consistent simplification of floating-point literals.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), keeping decimal values as floats while converting whole numbers to integers for better readability.


129-129: Simplified scale parameter from float to integer.

Changed the last parameter from 4.0F to 4, following the pattern of using integer literals for whole numbers while maintaining the same functionality.

src/main/java/com/paneedah/mwc/items/guns/AR15Factory.java (3)

733-733: Simplified scale representation by using integers.

Changed from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), removing unnecessary floating-point notation for whole numbers, improving readability while maintaining identical functionality.


742-742: Streamlined numeric representation.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), using integer literals for whole numbers while maintaining float notation for decimals.


968-968: Consistent use of integer for whole number value.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) in the hand positioning modification, following the same pattern as other similar changes in the file.

src/main/java/com/paneedah/mwc/items/guns/MP443Factory.java (3)

129-129: Simplified numeric representation for scale parameters.

Changed from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), using more appropriate integer literals for whole numbers instead of floating-point notation.


288-288: Simplified numeric literal in hand positioning.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), consistent with the pattern of simplifying whole number floats to integers throughout the codebase.


306-306: Consistent numeric representation in alternate hand positioning.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), matching other similar modifications and maintaining a consistent coding style.

src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunUpgradedFactory.java (3)

86-86: Simplified scale values using integer literals.

Changed from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), removing unnecessary floating-point notation for whole numbers while preserving functionality.


95-95: Consistent numeric representation for scale parameters.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), using integer literal for the whole number while maintaining float notation for decimal values.


128-128: Simplified scale parameter in modifying hand positioning.

Changed from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), continuing the pattern of using integers for whole numbers to improve code readability.

src/main/java/com/paneedah/mwc/items/guns/AK101Factory.java (3)

485-485: LGTM: Simplifying float literals

Changed from 3.0F, 3.0F, 3.0F to 3, 3, 3. Good cleanup of unnecessary float declarations.


494-494: LGTM: Consistent cleanup approach

Good job keeping the fractional values as floats (2.8F) while removing the unnecessary decimal notation from the integer value (4.0F4).


762-762: LGTM: Appropriate cleanup

Simplified integer representation while maintaining proper typing for decimal values.

src/main/java/com/paneedah/mwc/items/guns/HK_P12Factory.java (3)

198-198: LGTM: Clean integer representation

Simplified float representation from 3.0F, 3.0F, 3.0F to 3, 3, 3. This makes the code cleaner while maintaining the same functionality.


362-362: LGTM: Consistent cleanup pattern

Good approach to maintain fractional values as floats while simplifying integers.


380-380: LGTM: Appropriate type cleanup

Consistent with changes elsewhere in the codebase.

src/main/java/com/paneedah/mwc/items/guns/Beowulf50CalFactory.java (3)

641-641: LGTM: Simplified numeric representation

Clean replacement of 3.0F, 3.0F, 3.0F with 3, 3, 3 - same value, cleaner syntax.


650-650: LGTM: Consistent type usage

Good balance between keeping necessary float precision (2.6F) while simplifying integer values (4 instead of 4.0F).


858-858: LGTM: Clean numeric literals

Simplified integer representation aligns with the PR's cleanup goals.

src/main/java/com/paneedah/mwc/items/guns/Glock19Factory.java (3)

245-245: Simplified float notation in withScale method.

Removed redundant .0F notation from the scale parameters, simplifying them to integer values which are automatically converted to floats when needed.


498-498: Simplified float notation in withScale method.

Removed redundant .0F notation from the first two parameters while keeping the format consistent with the rest of the codebase.


516-516: Simplified float notation in withScale method.

Removed redundant .0F notation from the first two parameters, improving code readability while maintaining functionality.

src/main/java/com/paneedah/mwc/items/guns/ChiappaRhinoFactory.java (1)

49-49: Simplified float notation in withScreenShaking method.

Changed 1.0f to 1 for the y-parameter, removing the unnecessary floating-point suffix while preserving the same numerical value. This change aligns with the PR objective of cleaning up redundant float declarations.

src/main/java/com/paneedah/mwc/items/guns/turret/TurretGunFactory.java (3)

86-86: Style cleanup: Removed redundant float notation on whole numbers.

The change from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) aligns with the PR objective of removing unnecessary float declarations, making the code cleaner without affecting functionality.


95-95: Style cleanup: Removed redundant float notation on whole number parameter.

The change from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) maintains floating-point notation for non-whole numbers while removing it from the integer value, improving code readability.


128-128: Style cleanup: Removed redundant float notation on whole number parameter.

The change from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) is consistent with the style changes throughout the codebase, removing unnecessary float notation from integer values.

src/main/java/com/paneedah/mwc/items/guns/Remington870Factory.java (1)

465-465: Style cleanup: Removed redundant float notation on whole number parameter.

The change from .glTranslatef(-0.18f, 0.5f, -1.0f) to .glTranslatef(-0.18f, 0.5f, -1) removes the unnecessary float notation from the integer z-coordinate value, making the code cleaner while maintaining the same functionality.

src/main/java/com/paneedah/mwc/items/guns/ScarLFactory.java (3)

422-422: Code cleanup: Integer instead of float with zero decimal

Removed unnecessary float notation by using integer literals where the fractional part is zero. This is more concise.


431-431: Code cleanup: Simplified numeric literal

Changed 4.0F to 4 to remove redundant float notation while preserving the same value.


658-658: Code cleanup: Integer instead of float with zero decimal

Simplified 4.0F to 4 by removing unnecessary float notation for integers.

src/main/java/com/paneedah/mwc/items/guns/FNFALFactory.java (3)

369-369: Code cleanup: Integer literals instead of float literals

Changed 3.0F to 3 for cleaner code while maintaining the same functionality.


378-378: Code cleanup: Simplified numeric literal

Changed 4.0F to 4 for the third parameter while keeping 2.8F for the first two parameters where the decimal is significant.


617-617: Code cleanup: Integer instead of float with zero decimal

Removed unnecessary float notation for the integer 4, making the code more concise.

src/main/java/com/paneedah/mwc/items/guns/SIGMCXFactory.java (5)

567-567: Code cleanup: Integer literals instead of float literals

Simplified the scale parameters by using integer literals instead of float literals with zero decimals.


576-576: Code cleanup: Simplified numeric literal

Changed 4.0F to 4 in the scale parameter while preserving the decimal notation where needed.


679-679: Code cleanup: Integer instead of float zero

Replaced 0.0f with 0 for a cleaner representation of zero.


704-704: Code cleanup: Integer literal for zero

Changed -0.0f to -0 as they're functionally equivalent, and the integer representation is more concise.


785-785: Code cleanup: Simplified float representation

Removed unnecessary decimal point and F suffix for the integer 4 in the scale parameters.

src/main/java/com/paneedah/mwc/items/guns/G36CFactory.java (2)

329-329: Converting float literal to integer for whole number value.

The change from 4.0F to 4 in the third parameter of the withScale method aligns with the PR's goal of removing unnecessary float declarations for whole numbers. This won't affect functionality as Java automatically performs a widening primitive conversion.


521-521: Consistent float-to-integer conversion pattern.

Similar to the earlier change, this replaces the 4.0F literal with 4 while keeping the decimal values (2.6F) as floats. This is a consistent application of the cleanup pattern throughout the codebase.

src/main/java/com/paneedah/mwc/items/guns/M1897Factory.java (2)

209-209: Simplified numeric representation in translation coordinates.

Changed the third parameter in glTranslatef from -1.0f to -1, removing the unnecessary decimal and suffix for the whole number value. This simplification improves code clarity while maintaining identical functionality.


290-290: Consistent integer literal usage for whole number values.

Same pattern of replacing -1.0f with -1 in the third parameter of glTranslatef. The change is consistent with the overall cleanup approach and follows the same pattern as other changes in the codebase.

src/main/java/com/paneedah/mwc/items/guns/M17Factory.java (3)

157-157: Simplified scale parameters from float to integer literals.

All three parameters in withScale have been changed from 3.0F to 3, removing the unnecessary floating-point representation for whole numbers. This simplification improves code readability without changing functionality.


227-227: Standardized numeric literal representation.

Changed the third parameter from 4.0F to 4 while maintaining the decimal values (2.6F) as floats. This selective approach properly targets only whole numbers for cleanup while preserving necessary precision for decimal values.


245-245: Consistent cleanup of float notation.

Same pattern as line 227, replacing 4.0F with 4 for the third scale parameter. This maintains consistency throughout the modifying handler implementations.

src/main/java/com/paneedah/mwc/items/guns/ScarHFactory.java (2)

405-406: Clarify literal representation in first person positioning scale.
The change from a floating‑point literal (e.g. “3.0F”) to an integer literal “3” for a whole‐number scale value is appropriate. This simplifies the numeric representation without affecting functionality.


414-415: Update left-hand scale parameters for clarity.
The modification of the scale from “(2.6F, 2.6F, 4.0F)” to “(2.6F, 2.6F, 4)” intelligently removes an unnecessary float suffix from the whole‑number value while preserving the intended non‑integer values in the non‐whole components.

src/main/java/com/paneedah/mwc/items/guns/M9A1Factory.java (2)

213-214: Standardize first person positioning scale literals.
Changing the scale literal from a float format (likely “3.0F”) to an integer “3” improves code clarity and consistency since the value represents a whole number. No downstream impact is expected.


221-223: Refine first person hand positioning left-hand scale.
The update—from using an unnecessary “4.0F” to the simpler “4” in the left hand’s scale call—aligns with the project’s objective to eliminate redundant float declarations for whole numbers. The preservation of non‐whole float values (e.g. “2.6F”) is correct.

src/main/java/com/paneedah/mwc/items/guns/M16A1Factory.java (2)

412-416: Simplify first person positioning scale values.
Switching from “.withScale(3.0F, 3.0F, 3.0F)” to “.withScale(3, 3, 3)” removes needless float suffixes on whole numbers. This promotes clarity and adheres to the codebase’s guidelines without altering behavior.


424-427: Refine left-hand scale in first person hand positioning.
Reducing “4.0F” to “4” in the scale parameters (while keeping the non‑integer values intact, as with “2.6F”) removes unnecessary verbosity. This change meets the PR objective for standardizing numeric representation.

src/main/java/com/paneedah/mwc/items/guns/DSR1Factory.java (5)

135-135: Clean numeric representation.

Changed from floating point -1.0F to integer -1 for the z-parameter in the translation, which aligns with the PR goal of eliminating unnecessary float representations for whole numbers.


144-144: Clean numeric representation.

Changed from floating point -1.0F to integer -1 for the z-parameter in the translation, maintaining consistency with the previous change.


211-211: Clean numeric representation.

Changed from floating point -1.0F to integer -1 for the z-parameter in the translation, keeping consistent with the pattern of simplifying float literals.


220-220: Clean numeric representation.

Changed from floating point -1.0F to integer -1 for the z-parameter in the translation, continuing the consistent pattern of simplification.


1204-1204: Clean numeric representation.

Changed from floating point 0.0f to integer 0 for the z-parameter in the translation, completing the standardization of numeric literals in this file.

src/main/java/com/paneedah/mwc/items/guns/DesertEagleFactory.java (3)

142-142: Clean numeric representation in scale parameters.

Changed from floating point 3.0F, 3.0F, 3.0F to integer 3, 3, 3 in the scale parameters, which aligns with the PR objective of removing unnecessary float declarations for whole numbers.


216-216: Clean numeric representation for scale z-parameter.

Changed from floating point 4.0F to integer 4 for the z-parameter of the scale, while correctly maintaining the floating point format for the non-whole values (2.6F).


234-234: Clean numeric representation for scale z-parameter.

Changed from floating point 4.0F to integer 4 for the z-parameter of the scale, maintaining consistency with the previous similar change.

src/main/java/com/paneedah/mwc/items/guns/M110Factory.java (2)

392-392: Standardized scale parameters using integer literals.

The change from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) simplifies the code by removing redundant float declarations for whole numbers, improving readability.


401-401: Simplified floating-point representation in scale parameters.

The change from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) removes the unnecessary .0F suffix from the whole number, making the code more consistent and cleaner.

src/main/java/com/paneedah/mwc/items/guns/MP5A5Factory.java (5)

432-432: Standardized scale parameters using integer literals.

Changed .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), removing redundant float notations for whole numbers as per the cleanup initiative.


441-441: Simplified floating-point representation in scale parameters.

Modified .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), removing the unnecessary .0F suffix from the whole number.


449-449: Standardized scale parameters using integer literals.

Changed .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), following the consistent pattern of simplifying whole number float declarations throughout the codebase.


571-571: Simplified negative zero representation.

Changed GL11.glTranslatef(0.18f, -0.21f, -0.0f) to GL11.glTranslatef(0.18f, -0.21f, -0), removing redundant floating-point notation for zero value.


699-699: Simplified floating-point representation in scale parameters.

Modified .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), removing the unnecessary .0F suffix from the whole number, which is consistent with the cleanup initiative.

src/main/java/com/paneedah/mwc/items/guns/AACHoneyBadgerFactory.java (3)

597-597: Standardized scale parameters using integer literals.

Changed .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), following the consistent pattern of using integer literals for whole numbers instead of floats with .0F suffix.


606-606: Simplified floating-point representation in scale parameters.

Modified .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), removing the unnecessary .0F suffix from the whole number for better code clarity.


816-816: Simplified floating-point representation in scale parameters.

Changed .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), following the consistent cleanup initiative to remove redundant float notations for whole numbers.

src/main/java/com/paneedah/mwc/items/guns/KrissVectorFactory.java (3)

531-531: Clean conversion from float to integer literal

Good change! Converting 3.0F, 3.0F, 3.0F to 3, 3, 3 removes unnecessary decimal zeroes and type suffixes while preserving the same values, making the code more concise.


540-540: Appropriate numeric format standardization

Good change! Keeping 2.6F as a float (since it has a meaningful decimal part) while converting 4.0F to 4 aligns with the PR objective of removing only unnecessary float declarations.


879-879: Consistent numerical format application

The change from 2.6F, 2.6F, 4.0F to 2.6F, 2.6F, 4 is consistent with the other changes in this file, keeping necessary float declarations while removing the unnecessary ones.

src/main/java/com/paneedah/mwc/items/guns/AK74Factory.java (3)

499-499: Good cleanup of unnecessary float notation

Consistent with the PR's goal, this change appropriately removes the redundant .0F notation from integer values, making the code cleaner while maintaining the same functionality.


508-508: Appropriate format selection for numeric literals

Good change. You've correctly maintained the float notation for the values that need it (2.8F) while removing unnecessary float notation from the integer value (4 instead of 4.0F).


778-778: Consistent numeric standardization

This change from 2.6F, 2.6F, 4.0F to 2.6F, 2.6F, 4 follows the same pattern as the other changes in the codebase, ensuring consistency while removing redundant type information.

src/main/java/com/paneedah/mwc/items/guns/M38Factory.java (3)

525-525: Clean integer representation

Good change converting 3.0F, 3.0F, 3.0F to 3, 3, 3, which removes the redundant decimal zero and type suffix while maintaining the same values.


534-534: Appropriate float-to-integer conversion

Good job keeping 2.6F as floats (since they have decimal components) while removing the unnecessary float notation from 4.0F4, making the code cleaner while preserving semantics.


766-766: Consistent numeric standardization

This change maintains the consistent code style pattern applied throughout the PR, keeping necessary float declarations while eliminating redundant ones.

src/main/java/com/paneedah/mwc/items/guns/ACRFactory.java (2)

651-651: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation on whole numbers to improve code clarity, in line with the documented best practices.


660-660: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation from the last parameter while preserving the float notation for the non-whole numbers.

src/main/java/com/paneedah/mwc/items/guns/Glock18CFactory.java (3)

205-205: Code cleanup: simplified float notation for whole numbers.

Removed unnecessary .0F float notation on whole numbers to improve code readability.


375-375: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation from the last parameter while maintaining float notation for the decimal numbers.


393-393: Code cleanup: simplified float notation for whole numbers.

Removed unnecessary .0F float notation from the last parameter in the modifying alt handler.

src/main/java/com/paneedah/mwc/items/guns/HK417Factory.java (3)

611-611: Code cleanup: simplified float notation for whole numbers.

Removed unnecessary .0F float notation on whole numbers to improve code readability and consistency.


620-620: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation from the last parameter while preserving float notation for the decimal values.


837-837: Code cleanup: simplified float notation for whole numbers.

Removed unnecessary .0F float notation from the last parameter in this position modifying handler, consistent with other similar changes.

src/main/java/com/paneedah/mwc/models/ACRAction2.java (3)

24-25: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation from the expansion parameter in ModelBox constructor calls. This improves code readability without changing functionality.


30-31: Code cleanup: simplified float notation for whole numbers.

Removed unnecessary .0F float notation for zero values in the rotation angle parameters and for whole number values in the ModelBox dimensions.


36-37: Code cleanup: simplified float notation for whole numbers.

Removed redundant .0F float notation for zero values in the rotation angle parameters and for whole numbers in the ModelBox dimensions.

src/main/java/com/paneedah/mwc/items/guns/AR10SuperSASSFactory.java (2)

634-634: Clean transformation from floating-point to integer literals

The change from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) simplifies the code by removing unnecessary decimal zeros, making it more readable while maintaining the same functionality.


643-643: Good simplification of numeric literal

Replacing the floating-point literal 4.0F with integer 4 in the third parameter reduces unnecessary verbosity while maintaining the same behavior.

src/main/java/com/paneedah/mwc/items/guns/ScorpionEVO3A1Factory.java (3)

375-375: Clean code simplification

Converting .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) is a good simplification that makes the code more readable while maintaining identical functionality.


384-384: Consistent simplification pattern

Good cleanup of the third parameter from 4.0F to 4, which follows the same simplification pattern being applied throughout the codebase.


581-581: Appropriate simplification

Replacing the floating-point literal 4.0F with integer 4 enhances readability while preserving the same functionality.

src/main/java/com/paneedah/mwc/items/guns/P226Factory.java (3)

174-174: Cleaner numeric representation

Good transformation from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), removing unnecessary floating-point notation while maintaining the same behavior.


337-337: Simplified numeric format

The change from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) is appropriate, removing unnecessary decimal zeros from the integer value.


355-355: Consistent cleanup applied

Good simplification of the third parameter from 4.0F to 4, aligning with the cleanup pattern applied throughout the codebase.

src/main/java/com/paneedah/mwc/items/guns/VP70Factory.java (3)

125-125: Cleaner code representation

Good transformation from .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3), which helps reduce verbosity while maintaining identical functionality.


286-286: Appropriately simplified numeric literal

Converting the third parameter from 4.0F to 4 is a sensible cleanup that maintains the same behavior while improving readability.


304-304: Consistent cleanup approach

Good change from .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), following the same pattern of removing unnecessary floating-point notation for whole numbers.

src/main/java/com/paneedah/mwc/items/guns/F2000Factory.java (2)

388-388: Clean representation using integers instead of floating-point literals.

Converting 3.0F to 3 reduces verbosity while maintaining the same functionality. Integer literals are implicitly converted to float when needed.


397-397: Consistent cleanup of float notation.

Good change replacing 4.0F with 4 while keeping the fractional values as floats where needed.

src/main/java/com/paneedah/mwc/items/guns/MakarovPMFactory.java (3)

155-155: Simplified scale parameter representation.

Good change replacing floating-point literals with integer literals for whole numbers.


315-315: Consistent cleanup of unnecessary float notation.

Converting 4.0F to 4 matches the PR objective of removing redundant float declarations.


333-333: Simplified float notation for scale parameter.

Good consistency in changing from 4.0F to 4 while keeping fractional values as floats.

src/main/java/com/paneedah/mwc/items/guns/G11Factory.java (3)

252-252: Cleaner scale parameter syntax.

Good simplification of whole number float literals to integers.


261-261: Simplified scale parameter notation.

Good change removing unnecessary decimal point and 'F' suffix for the whole number.


400-400: Consistent cleanup of float notation.

Good alignment with the code cleanup objective by replacing 4.0F with 4.

src/main/java/com/paneedah/mwc/items/guns/AK12Factory.java (3)

349-349: Clean integer representation for scale parameters.

Good simplification by using integers instead of floats for whole numbers.


358-358: Simplified float notation for whole number parameter.

Good change removing redundant decimal point and 'F' suffix from the integer value.


608-608: Consistent cleanup of float notation.

Good standardization of code style by changing 4.0F to 4.

src/main/java/com/paneedah/mwc/items/guns/AK47Factory.java (3)

510-510: Clean removal of unnecessary float notation.

The change from 3.0F to 3 for whole number values simplifies the code without affecting functionality, as integers are automatically promoted to floats when required.


519-519: Good simplification of integer value representation.

Maintains the float notation for the fractional values (2.8F) while properly simplifying the whole number (4.0F to 4), consistent with the PR's goal of removing unnecessary float declarations.


779-779: Consistent simplification of whole number value.

The change from 4.0F to 4 follows the same pattern as other changes, maintaining fractional values as floats (2.6F) while simplifying whole numbers to integers.

src/main/java/com/paneedah/mwc/items/guns/M16A4Factory.java (3)

727-727: Clean removal of unnecessary float notation.

The change from 3.0F to 3 for whole number values simplifies the code without affecting functionality, as integers are automatically promoted to floats when required.


736-736: Good simplification of integer value representation.

Maintains the float notation for the fractional values (2.6F) while properly simplifying the whole number (4.0F to 4), consistent with the PR's goal of removing unnecessary float declarations.


967-967: Consistent simplification of whole number value.

The change from 4.0F to 4 follows the same pattern as other changes, maintaining fractional values as floats (2.6F) while simplifying whole numbers to integers.

src/main/java/com/paneedah/mwc/items/guns/NinthSinFactory.java (1)

23-23: Clean and consistent integer representation.

Changed floating-point literal 0.0f to integer 0 for the recoil parameter, which is consistent with the PR's goal of removing unnecessary float declarations.

src/main/java/com/paneedah/mwc/models/ACRFixedStock.java (27)

48-56: Clean and consistent integer representation in ModelBox parameters.

Changed the last parameter in ModelBox constructor calls from 0.0F to 0, maintaining functionality while simplifying the numeric representation.


62-64: Simplified rotation angle parameters.

Changed explicit float values 0.0F to integer 0 in setRotationAngle method call, which is automatically converted to float when needed.


69-73: Consistent integer usage in cubeList entries.

Changed trailing zeros in float literals to integer values in ModelBox constructor calls, maintaining consistent numeric representation across the codebase.


78-78: Clean model parameter representation.

Changed ModelBox parameter from float with trailing zero to integer, simplifying the code while maintaining identical functionality.


84-84: Integer simplification for zero decimal values.

Simplified 0.0F to 0 in ModelBox parameter for cleaner code representation.


90-90: Consistent numeric representation.

Changed ModelBox parameter from floating-point with trailing zero to integer, aligned with project-wide standardization.


96-98: Standardized numeric representation in model definition.

Changed multiple ModelBox parameters from float to integer for values with zero decimal places, improving code clarity without changing functionality.


104-104: Clean numeric value representation.

Changed 0.0F to 0 in ModelBox constructor parameter, maintaining consistency with other changes in the codebase.


109-110: Simplified angle parameters and model definition.

Changed rotation angle parameters from explicit floats to integers, and similarly updated ModelBox constructor parameters.


115-116: Consistent angle and model parameter representation.

Simplified both setRotationAngle parameters and ModelBox constructor parameter from 0.0F to 0 for cleaner code.


121-122: Standardized numeric representation in rotation and model parameters.

Consistently updated both rotation angle parameters and ModelBox constructor parameter to use integers instead of floats with zero decimal places.


127-128: Clean angle and model parameter representation.

Updated setRotationAngle parameters and ModelBox constructor parameter to use integer 0 instead of float 0.0F.


133-134: Simplified numeric parameters.

Changed rotation angle and ModelBox parameters from floating-point with trailing zeros to integers for cleaner code.


139-141: Standardized numeric representation throughout model definition.

Updated rotation angle parameters and multiple ModelBox constructor parameters to use integers instead of floats with zero decimal places.


147-148: Consistent integer usage for zero decimal values.

Changed ModelBox constructor parameters from 0.0F to 0, improving code consistency and readability.


154-155: Clean model parameter representation.

Standardized ModelBox constructor parameters to use integer 0 instead of float 0.0F.


160-161: Simplified angle and model parameters.

Changed both rotation angle and ModelBox parameters from explicit floats to integers where decimal part is zero.


166-169: Consistent integer representation in model definition.

Updated setRotationAngle parameters and multiple ModelBox constructor parameters to use integers instead of floats with zero decimal places.


174-177: Standardized numeric parameters throughout model definition.

Changed setRotationAngle parameters and multiple ModelBox constructor parameters to use integers for zero decimal values.


182-183: Clean angle and model parameter representation.

Simplified setRotationAngle parameters and ModelBox constructor parameter by using integer 0 instead of float 0.0F.


188-189: Consistent numeric parameter representation.

Updated both rotation angle and ModelBox parameters from explicit floats to integers where the decimal part is zero.


195-196: Clean model parameter representation.

Changed ModelBox constructor parameters from float with trailing zero to integer for cleaner code.


202-203: Standardized model parameter representation.

Updated ModelBox constructor parameters to use integer 0 instead of float 0.0F for consistent style.


208-209: Simplified angle and model parameters.

Changed both rotation angle parameters and ModelBox constructor parameter to use integers instead of floats with zero decimal places.


214-215: Clean angle and model parameter representation.

Standardized setRotationAngle parameters and ModelBox constructor parameter to use integer 0 instead of float 0.0F.


220-221: Consistent numeric representation in model definition.

Updated rotation angle parameters and ModelBox constructor parameter from floating-point with trailing zeros to integers.


226-227: Standardized numeric parameters in model definition.

Changed setRotationAngle parameters and ModelBox constructor parameter to use integers for zero decimal values, maintaining consistent style across the codebase.

src/main/java/com/paneedah/mwc/items/guns/UMP45Factory.java (4)

324-324: Clean numeric representation change.

The code now uses integer literals where appropriate instead of floating-point literals with .0F suffix. This makes the code cleaner and more readable.


333-333: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.6F) while removing unnecessary .0F suffix from the integer value (4).


341-341: Clean numeric representation change.

The code now uses integer literals where appropriate instead of floating-point literals with .0F suffix, consistent with the PR objectives.


539-539: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.6F) while removing unnecessary .0F suffix from the integer value (4).

src/main/java/com/paneedah/mwc/items/guns/M40A6Factory.java (3)

300-300: Clean numeric representation change.

The code now uses integer literals where appropriate instead of floating-point literals with .0F suffix. This makes the code cleaner and more readable.


309-309: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.6F) while removing unnecessary .0F suffix from the integer value (4).


452-452: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.6F) while removing unnecessary .0F suffix from the integer value (4).

src/main/java/com/paneedah/mwc/models/ACRSBRHandguard.java (9)

30-31: Simplified zero parameters in ModelBox constructor.

Removed unnecessary .0F suffix from the zero parameters, making the code cleaner and more readable.


36-37: Simplified rotation angle parameters.

Removed unnecessary .0F suffix from zero angle parameters while keeping the precision on the non-zero angle (-2.5133F).


42-43: Simplified rotation angle parameters.

Removed unnecessary .0F suffix from zero angle parameters while keeping the precision on the non-zero angles (0.3316F, -2.5133F).


48-49: Simplified rotation angle parameters.

Removed unnecessary .0F suffix from zero angle parameters while keeping the precision on the non-zero angle (2.5133F).


54-55: Simplified rotation angle parameters.

Removed unnecessary .0F suffix from zero angle parameters while keeping the precision on the non-zero angles (0.3316F, 2.5133F).


60-85: Simplified ModelBox constructors.

Removed unnecessary .0F suffix from the zero parameters across multiple ModelBox constructor calls, making the code cleaner and more consistent.


90-91: Simplified rotation angle parameters.

Removed unnecessary .0F suffix from zero angle parameters while keeping the precision on the non-zero angle (-0.7679F).


95-98: Simplified rotation parameters.

Line 95 modifies a position parameter, and lines 97-98 simplify rotation parameters by removing unnecessary .0F suffix from zero angles.


100-104: Simplified rotation parameters.

Line 101 modifies a position parameter, and lines 103-104 simplify rotation parameters by removing unnecessary .0F suffix from zero angles.

src/main/java/com/paneedah/mwc/items/guns/SVDDragunovFactory.java (4)

196-196: Simplified GL transformation parameter.

Removed unnecessary .0F suffix from the integer value in the Z-coordinate parameter, making the code cleaner.


344-344: Clean numeric representation change.

The code now uses integer literals where appropriate instead of floating-point literals with .0F suffix. This makes the code cleaner and more readable.


353-353: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.8F) while removing unnecessary .0F suffix from the integer value (4).


620-620: Appropriate mixed numeric format.

Good use of mixed formatting - keeping decimal places where needed (2.6F) while removing unnecessary .0F suffix from the integer value (4).

src/main/java/com/paneedah/mwc/models/AACHoneyBadgerStock.java (2)

37-60: Standardized Numeric Representations in Stock Initialization
In these lines the code now calls
  stock.setRotationPoint(0, 24, 0)
and uses many ModelBox constructor calls where the final “offset” parameter is now written as an integer (e.g. using 0 instead of 0.0F). This cleanup improves clarity and removes an unnecessary use of floats for whole numbers without affecting functionality.


61-175: Consistent Numeric Cleanup in Child Renderers and Bone Definitions
The child model parts (such as those for gun775_r1, gun774_r1, and subsequent bone segments) now use integer literals for whole‐number values in methods like setRotationPoint and setRotationAngle when appropriate while retaining float precision for non‑whole numbers. This consistent update across the entire constructor ensures clarity and conforms to the project guidelines.

src/main/java/com/paneedah/mwc/items/guns/KS23Factory.java (1)

225-231: Numeric Literal Cleanup in GL11 Transformations
Within the eject spent round Transition blocks, the GL11.glTranslatef calls now pass whole‐number values as integers (for example, replacing a previous -1.0F with -1). This change is applied in both the standard and aimed eject transitions and aligns perfectly with the goal of removing redundant float declarations.

Also applies to: 259-266

src/main/java/com/paneedah/mwc/models/ACRPRSStock.java (1)

43-199: Uniform Numeric Literal Standardization
Across this model class the ModelBox constructor calls and the transformation methods (including calls to setRotationAngle) have been updated by replacing floating‑point literals that represent whole numbers with integers. These changes make the code easier to read and are consistent with the project’s cleanup guidelines while leaving the geometric definitions unchanged.

src/main/java/com/paneedah/mwc/models/AACHoneyBadgerSilencer.java (1)

25-33: Consistent Redundant Float Removal in Silencer Model
The silencer model now calls
  silencer.setRotationPoint(0, 24, 0)
and in all ModelBox additions the last parameter is now given as an integer (e.g. 0 instead of 0.0F). In addition, transformation calls such as setRotationAngle similarly use integer literals where possible. This uniform update improves consistency with the cleanup objective.

Also applies to: 36-62

src/main/java/com/paneedah/mwc/items/guns/APSFactory.java (1)

146-147: Refined Scaling Literal Representation
In APSFactory the calls to the withScale method have been refined so that whole number scale factors are expressed as integers rather than floats (for example, using 3 instead of 3.0F and 4 instead of 4.0F). Note that non‑whole numbers (such as 2.6F) are preserved in order not to lose the intended visual precision. This update is a clear win for consistency and readability.

Also applies to: 296-300

src/main/java/com/paneedah/mwc/models/AACKnightsArmamentReceiver.java (1)

55-55: Simplification of floating-point literals looks good.

The changes simplify whole number floating-point literals (like 0.0F, -9.0F) to integer literals (0, -9) consistently throughout the model definition. This improves code readability while maintaining identical functionality since Java implicitly converts integers to floats when needed.

Also applies to: 59-61, 62-63, 67-69, 74-75, 78-84, 86-89, 94-95, 100-101, 104-107, 112-113, 117-119, 122-125, 129-131, 136-137, 142-145, 148-149, 154-156, 162-165, 168-170, 178-181, 184-186, 194-196, 204-206, 211-212, 215-218, 223-224, 237-243, 246-249, 252-256

src/main/java/com/paneedah/mwc/items/guns/KBP9A91Factory.java (3)

177-177: Integer literals for whole number scales - good change.

Converting from withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3) simplifies the code and aligns with the PR objective of removing unnecessary float declarations.


186-186: Consistent style improvement for scale parameters.

Changed from withScale(2.8F, 2.8F, 4.0F) to withScale(2.8F, 2.8F, 4). This maintains the necessary float precision where needed (2.8F) while simplifying the whole number (4).


317-317: Simplified GL translation parameter.

Changed from GL11.glTranslatef(-0.015F, 0.2f, 0.0f) to GL11.glTranslatef(-0.015F, 0.2f, 0). Appropriate simplification of the z-parameter that removes the unnecessary float suffix.

src/main/java/com/paneedah/mwc/items/guns/SCCYCPX2Factory.java (2)

164-164: Integer literals for scale parameters - good refactoring.

Changed from withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3) which simplifies the code while maintaining identical functionality.


330-330: Consistent simplification of scale parameters.

Both instances changed from withScale(2.6F, 2.6F, 4.0F) to withScale(2.6F, 2.6F, 4), keeping fractional values as floats while converting whole numbers to integers. This maintains a consistent approach throughout the codebase.

Also applies to: 348-348

src/main/java/com/paneedah/mwc/items/guns/Mk14EBRFactory.java (2)

470-470: Simplified scale parameters with integers.

Changed from withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3) which removes unnecessary float declarations.


479-479: Consistent cleanup of whole number floats.

Both instances follow the same pattern of changing withScale(2.8F, 2.8F, 4.0F) to withScale(2.8F, 2.8F, 4) and withScale(2.6F, 2.6F, 4.0F) to withScale(2.6F, 2.6F, 4). This maintains a consistent style while preserving necessary decimal precision.

Also applies to: 730-730

src/main/java/com/paneedah/mwc/items/guns/SSG08Factory.java (1)

277-277: Cleaner numeric literals improve readability

The simplification of float literals where the decimal part is zero helps make the code cleaner and more concise while maintaining the same functionality. These types of cleanups improve code readability and follow the PR's goal of removing unnecessary .0f declarations.

Also applies to: 441-447, 500-506, 788-794

src/main/java/com/paneedah/mwc/items/guns/TaurusRagingHunterFactory.java (3)

136-136: Improved numeric literal readability

Simplifying float literals from 3.0F to 3 makes the code cleaner while maintaining the same functionality. Java will automatically promote the integer to a float when passing to methods that expect float parameters.


165-165: Cleaner numeric representation

Replacing -2.0f with -2 reduces visual noise in the code without changing behavior. This is a good cleanup.


205-205: Consistent literal simplification

Good cleanup by simplifying 4.0F to 4 in the scale parameters, maintaining the same functionality while improving readability.

Also applies to: 223-223

src/main/java/com/paneedah/mwc/items/guns/AK12_kalFactory.java (1)

400-410: Consistent Use of Integer Literals for Scale Parameters

The conversion of scale values from floating‑point literals (e.g., 3.0F, 4.0F) to integer literals (3, 4) in the various withScale calls conforms to the PR objective. This change removes unnecessary float decorations for whole numbers and improves code clarity without any loss of precision.

src/main/java/com/paneedah/mwc/models/ACRHandGuard.java (2)

31-44: Standardizing ModelBox Constructor Literals

All ModelBox constructor calls that specify a depth or extra scale value now use the integer literal 0 instead of 0.0F. Since the value is exactly zero, the conversion to an integer literal is safe and enhances readability.


46-54: Consistent Transformation Parameter Literals

The helper method calls such as setRotationAngle for child renderers (e.g. on handguard32_r1) now use 0 instead of 0.0F for the y‑ and z‑rotation arguments when the value is precisely zero. This change standardizes these parameters with the rest of the code.

src/main/java/com/paneedah/mwc/items/guns/AK15Factory.java (2)

423-424: Simplified Scale Literals in First‑Person Positioning

The first‑person positioning transformation now uses .withScale(3, 3, 3) instead of a float literal variant (e.g. 3.0F). Removing the trailing “.0F” for whole numbers improves consistency and reduces visual clutter.


432-433: Refined Scale Parameter for Hand Positioning

In the left hand transformation the z‑axis scale is now specified as 4 instead of 4.0F while the other values remain as floats (since 2.8 isn’t a whole number). This selective standardization maintains necessary precision while cleaning up redundant formatting.

src/main/java/com/paneedah/mwc/items/guns/VSSVintorezFactory.java (4)

235-245: Optimized GL11 Translation Literals

Several GL11.glTranslatef calls in the attachment configuration (for example, for the Reflex attachment) now use integer literals (e.g. –1 instead of –1.0F) for parameters that are whole numbers. This adjustment streamlines the numeric representation without affecting the rendering outcomes.


253-268: Consistent Application in Attachment Configurations

Changes in attachments such as Holographic and HolographicAlt now show GL11.glTranslatef calls that have been updated to use integer values (e.g. –1 instead of –1.0F) where no fractional part is needed. The removal of redundant “F” suffixes here enhances code uniformity.


368-369: Simplified First‑Person Positioning Scale

The first‑person positioning transformation now uses a simplified call—using .withScale(3, 3, 3)—instead of the extra “.0F” notation. This contributes to an overall cleaner and more consistent transformation configuration.


589-597: Standardized Translation in Zooming Configuration

Within the custom zooming configuration, changes such as replacing “0F” or “0.0F” with “0” ensure that translation values for whole numbers are written in their simplest form. This small but consistent change furthers code clarity while retaining the intended behavior.

src/main/java/com/paneedah/mwc/models/ACRLongRangeStock.java (2)

42-68: Consistent simplification of float literals.

The change from 0.0F to 0 simplifies the code while maintaining the same functionality since Java implicitly converts integer literals to floats when needed. This change aligns with the PR objective of removing unnecessary float declarations.


76-76: Clean up of rotation parameters.

The simplification of 0.0F to 0 in the setRotationAngle method calls maintains functionality while reducing unnecessary float notation. This is consistent with the PR's cleanup goals.

Also applies to: 82-82, 88-88, 106-106, 112-112, 118-118, 124-124, 130-130, 153-153, 162-162, 168-168, 175-175, 181-181, 187-187, 193-193, 199-199

src/main/java/com/paneedah/mwc/items/guns/NGSWRFactory.java (4)

432-432: Simplified scale parameters.

Replaced floating-point literals with equivalent integer literals for a cleaner representation. This maintains the same functionality while improving code readability.


441-441: Simplified scale parameters while preserving precision where needed.

Keeping the floating-point representation for the first two parameters while simplifying the third parameter to an integer value maintains precision where required while removing unnecessary decimal notation.


539-539: Simplified translation parameter.

Removed unnecessary floating-point notation for the middle parameter while preserving the float notation for parameters that require it. This is a consistent approach across the codebase.


564-564: Simplified translation parameter.

Removing the decimal point from the middle parameter while maintaining it for other parameters where appropriate follows the PR's objective of removing unnecessary float declarations.

src/main/java/com/paneedah/mwc/items/guns/SIG556Factory.java (4)

457-457: Simplified translation parameter.

Changed from -0.0F to -0 for the y-translation parameter. Both represent the same value, but the simplified version aligns with the PR objective of cleaning up excessive float declarations.


511-511: Simplified scale parameters.

Replaced floating-point literals with equivalent integer literals for a cleaner representation without changing functionality.


520-520: Consistent simplification of scale parameters.

Maintained floating-point notation where precision is needed (first two parameters) while simplifying the integer parameter. This approach is consistent with changes throughout the codebase.


725-725: Consistent simplification pattern applied to hand positioning.

Applied the same simplification pattern to hand positioning transform, preserving numeric values while removing unnecessary float notation.

src/main/java/com/paneedah/mwc/items/guns/ZbroyarZ10Factory.java (2)

407-411: Standardizing Scale Values in First-Person Positioning:
The change from using floating‑point literals (e.g. “3.0F”) to integer literals (3) in the call

.withScale(3, 3, 3)

improves readability when the scale value is a whole number. Since Java supports implicit conversion from int to float, this change is safe as long as the underlying method accepts a float.


416-422: Consistent Numeric Representation in Hand Positioning:
In the first‑person hand positioning transformation, the scale value for the z‑axis was changed from “4.0F” to “4” while retaining non‑whole numbers (e.g. “2.6F”) in the other parameters:

.withScale(2.6F, 2.6F, 4)

This is fully in line with the cleanup goals.

src/main/java/com/paneedah/mwc/items/guns/Spas12Factory.java (1)

337-343: Optimizing Float Declarations in Transition Translations:
In several reload transition blocks the call to

GL11.glTranslatef(0, -0.03F, -0.075F);

(and similar calls) now uses the integer literal 0 in place of “0.0F” for whole‑number offsets. This cleanup increases code clarity without impacting functionality, thanks to Java’s implicit conversion from int to float.

src/main/java/com/paneedah/mwc/models/AACHoneyBadgerHandguard.java (3)

24-26: Refinement of Rotation and Translation Parameters:
The call

handguard.setRotationPoint(0, 24, 0);

now uses integer literals for whole‑number values. This improves readability and aligns with the goal of avoiding redundant float declarations while preserving precision where required.


40-49: Adjustments in Sub-Component Transformations:
The changes in the initialization of “bone5_r1”—including using integer 0 for components when no fractional precision is needed—and the subsequent ModelBox additions clearly separate whole-number values from truly fractional values (like –38.5F). This level of clarity benefits maintainability.


52-58: Consistent Numeric Literals in Child Components:
Similar adjustments in “bone6_r1” and “bone4_r1” (using integer 0 instead of 0.0F where applicable) show a consistent cleanup effort. Please verify that these minor changes do not impact the visual output—but overall they serve to make the code more concise.

src/main/java/com/paneedah/mwc/items/guns/ARX160Factory.java (2)

369-373: Streamlining Scale Transformations:
The updated first‑person positioning now calls

.withScale(3, 3, 3)

instead of using “3.0F” literals. This change is consistent with the overall cleanup objective of eliminating redundant float notation for whole numbers while keeping the functionality intact via implicit conversion.


536-538: Uniform Numeric Representation in Hand Positioning:
In the hand positioning block, the scale is set with

.withScale(2.6F, 2.6F, 4)

where the third parameter (a whole number) is now represented as an integer (4) rather than “4.0F”. This maintains necessary precision for fractional values (2.6F) yet simplifies whole-number arguments, leading to improved consistency across the codebase.

src/main/java/com/paneedah/mwc/items/guns/M4A1Factory.java (3)

103-103: Consistent simplification of float literal.

The change from 0.0f to 0 eliminates unnecessary decimal point and suffix for whole number values, improving code readability while maintaining identical behavior.


944-944: Good cleanup of redundant float literals.

Converting 3.0F, 3.0F, 3.0F to 3, 3, 3 removes unnecessary decimal points and type suffixes for whole number values, making the code cleaner while preserving identical behavior.


953-953: Improved numeric literal representation.

Simplified 4.0F to 4 while keeping 2.6F values that need decimal precision. This change maintains consistency with the PR goal of removing unnecessary float declarations for whole numbers.

src/main/java/com/paneedah/mwc/items/guns/Type20Factory.java (5)

349-349: Simplified integer representations.

Replacing 3.0F, 3.0F, 3.0F with 3, 3, 3 removes redundant decimal points and type suffixes, improving code readability while maintaining identical functionality.


358-358: Consistent cleanup of float literals.

Changed 4.0F to 4 while preserving the necessary floating point notation for the 2.6F values that require decimal precision.


452-452: Simplified numeric representation.

Removed unnecessary decimal point and suffix from 0.0f, replacing it with a cleaner 0 that has identical behavior in this context.


482-482: Improved number formatting consistency.

Changed 0.0f to 0 while keeping the floating-point notation for values that require decimal precision. This creates cleaner, more readable code.


579-579: Simplified whole number representation.

The change from 4.0F to 4 follows the PR goal of eliminating redundant float declarations while preserving the necessary precision for non-integer values.

src/main/java/com/paneedah/mwc/models/ACRPDWStock.java (2)

36-49: Simplified ModelBox constructor parameters.

Consistently changed the last parameter in all ModelBox constructors from 0.0F to 0, removing redundant float declarations for whole number values while maintaining identical behavior.


54-54: Standardized rotation angle parameters.

Changed zero angle parameters from 0.0F to 0 in all setRotationAngle method calls, creating more consistent and readable code while preserving the same functionality.

Also applies to: 60-60, 66-66, 72-72, 81-81, 87-87, 93-93, 99-99, 106-106, 113-113, 120-120, 127-127

src/main/java/com/paneedah/mwc/items/guns/FamasF1Factory.java (3)

316-316: Clean Up Scale Literals in First-Person Positioning
The call to .withScale(3, 3, 3) now uses integer literals instead of 3.0F for a whole number value. This aligns with the PR objective by removing unnecessary float markers.


325-325: Refine Mixed-Type Scale Parameters
Here the third parameter in .withScale(2.6F, 2.6F, 4) has been changed from 4.0F to 4 while preserving the decimal values for the non‐integral dimensions. This is appropriate since only the whole‑number dimensions needed the cleanup.


581-581: Standardize Scale in Hand Positioning Modification
The transformation call now uses .withScale(2.6F, 2.6F, 4) (with the third parameter as an integer) in the “modifying” block. This is consistent with the overall intent to remove redundant float declarations for whole numbers.

src/main/java/com/paneedah/mwc/items/guns/MPXFactory.java (1)

304-306: Consistent Translation Literals for Attachments
In the withCompatibleAttachment(Attachments.AimpointCompM2, …) block the translation call now reads

GL11.glTranslatef(-0.12F, -1, -1F);

—using -1 instead of -1.0F for whole-number values. This helps standardize numeric representations throughout the code and is acceptable given Java’s automatic conversion from int to float.

src/main/java/com/paneedah/mwc/models/ACRStock.java (2)

64-95: Standardize ModelBox Numeric Parameters
Across numerous ModelBox constructor calls the whole‑number parameters previously written as 0.0F have been replaced with 0. This change removes redundant float formatting and brings consistency to model dimension definitions. Please double‑check that no unintended shifts in model geometry occur.


100-361: Uniform Rotation Angle Declarations
Subsequent calls (including those to setRotationAngle(...) and additional ModelBox additions in child model renderers) have similarly replaced float literals (like 0.0F) with integer literals (0) for whole numbers. This overall cleanup is in line with the PR objectives.

src/main/java/com/paneedah/mwc/items/guns/P90Factory.java (3)

187-191: Attachment Scaling Consistency
Within the withCompatibleAttachment(Attachments.NightRaider, …) block the call

GL11.glScaled(1, 1, 1);

now uses integer literals instead of 1.0F, 1.0F, 1.0F. This change complies with the goal of removing unnecessary float suffixes and improves clarity.


374-390: Refined First-Person Positioning Scale
The first-person positioning transform now specifies the scale as

.withScale(3, 3, 3);

rather than using 3.0F values. In addition, the left-hand positioning block now reads

.withScale(2.6F, 2.6F, 4)

(with the third parameter cleaned up to an integer). These modifications standardize the representation of scale factors while preserving the intended non‑integral values where needed.


599-604: Consistent Scale in Hand Positioning Modifications
In the block under .withFirstPersonHandPositioningModifying(…) the scale call is updated to use .withScale(2.6F, 2.6F, 4) in place of a float literal for the whole number. This matches the applied cleanup across the file.

src/main/java/com/paneedah/mwc/items/guns/AUGFactory.java (1)

525-525: Improved code readability by removing redundant float suffixes

These changes simplify the code by replacing floating-point literals with integer literals where the fractional part is zero (e.g., 3.0F3, 0.0f0). This makes the code cleaner while maintaining identical functionality since Java automatically converts integers to floats when needed.

Also applies to: 534-534, 676-679, 688-691, 700-703, 712-715, 724-727, 736-739, 750-750, 778-778, 819-819, 557-557

src/main/java/com/paneedah/mwc/items/guns/FiveSevenFactory.java (1)

156-156: Simplified numeric literals for better readability

The changes replace floating-point literals with integer literals where the fractional part is zero (e.g., 3.0F3, 4.0F4), making the code cleaner while preserving identical functionality.

Also applies to: 231-231, 249-249

src/main/java/com/paneedah/mwc/items/guns/G3Factory.java (1)

381-381: Removed unnecessary float suffixes for better code clarity

These changes consistently simplify numeric literals by removing redundant float suffixes where the fractional part is zero. This improves readability while maintaining identical functionality since Java automatically converts integers to floats in these contexts.

Also applies to: 390-390, 398-398, 632-632

src/main/java/com/paneedah/mwc/items/guns/UziFactory.java (1)

170-170: Simplified numeric literals for better code consistency

The changes replace floating-point literals with integer literals where appropriate (e.g., 3.0F3, 4.0F4). This aligns with the PR's goal of removing unnecessary float declarations and improves code readability without affecting functionality.

Also applies to: 179-179, 331-331, 349-349

src/main/java/com/paneedah/mwc/items/guns/CZ805BrenFactory.java (1)

120-120: Appropriate conversion of floating literals to integer literals.

The changes in this file are consistent with the PR objective of standardizing numerical representations by removing unnecessary float declarations.

Also applies to: 139-139, 244-244, 358-358, 367-367, 455-455, 479-479, 582-582

src/main/java/com/paneedah/mwc/models/ACOG.java (1)

189-189: Consistently simplified numerical representations.

The modifications standardize numerical literals by replacing unnecessary float declarations (like 0.0F) with integer literals (0). This improves code readability while maintaining the same functionality, as Java automatically converts between numeric types as needed.

Also applies to: 195-197, 203-204, 227-228, 233-234, 245-246, 469-470, 583-584, 789-790, 807-807, 831-831, 1026-1029, 1059-1061, 1134-1135, 1146-1147, 1152-1153, 1158-1159, 1164-1165, 1170-1171, 1176-1177, 1212-1213

src/main/java/com/paneedah/mwc/items/guns/S710TricunFactory.java (5)

70-70: Good simplification of floating-point parameter.

Removing unnecessary floating-point suffix for whole number values improves code readability while maintaining the same functionality.


114-114: Clean transformation parameter update.

Good conversion from 0.0f to 0 for y-coordinate parameter - simplifies the code without changing behavior.


458-458: Good simplification of scale parameters.

Converting from 3.0F, 3.0F, 3.0F to 3, 3, 3 improves readability while maintaining identical functionality.


467-467: Good parameter cleanup.

Well-executed change from 2.6F, 2.6F, 4.0F to 2.6F, 2.6F, 4 - removes the unnecessary float suffix for the third parameter.


678-678: Good parameter cleanup in modifying handler.

Good consistency in replacing 4.0F with 4 across the codebase, aligned with the PR objectives.

src/main/java/com/paneedah/mwc/models/ACRPolymerHandguard.java (4)

47-57: Appropriate simplification of ModelBox parameters.

Good cleanup of multiple ModelBox constructor parameters, converting 0.0F to 0 consistently across the cubeList declarations. This improves code readability without changing functionality.


62-63: Clean simplification of rotation angles.

Good conversion of 0.0F to 0 for rotation parameters in the setRotationAngle call, maintaining functionality while improving readability.


68-69: Consistent parameter simplification.

Continuing the pattern of removing unnecessary float declarations consistently through the file.


74-75: Well-executed rotation angle parameter simplification.

The changes consistently replace 0.0F with 0 across all rotation angle parameters throughout the file, demonstrating good attention to detail while maintaining code functionality.

Also applies to: 80-81, 86-87, 93-94, 100-101, 113-114, 119-120, 126-127, 146-148, 153-154, 159-169, 173-174, 179-181, 186-187, 192-193, 198-199, 204-205, 210-211, 216-217, 222-223, 228-229

src/main/java/com/paneedah/mwc/items/guns/PythonFactory.java (5)

79-79: Good transformation parameter cleanup.

Appropriate conversion from -3.0F to -3 for the z-coordinate parameter in the glTranslatef call.


112-112: Well-executed scale parameter simplification.

Simplified withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3) improves code clarity while maintaining functionality.


141-141: Good translation parameter cleanup.

Simplified z-coordinate parameter from floating-point to integer format in the glTranslatef call.


181-181: Good scale parameter cleanup.

Replaced 4.0F with 4 in the scale parameters while maintaining other fractional values.


199-199: Consistent parameter simplification.

Maintained consistency by applying the same cleanup pattern to all similar parameters in the file.

src/main/java/com/paneedah/mwc/items/guns/M82Factory.java (4)

291-291: Good scale parameter simplification.

Simplified withScale(3.0F, 3.0F, 3.0F) to withScale(3, 3, 3) for cleaner code while maintaining functionality.


300-301: Consistent parameter cleanup.

Good replacement of 4.0F with 4 in the z-scale parameter for left hand positioning.


308-309: Good scale parameter simplification.

Converting from 3.0F, 3.0F, 3.0F to 3, 3, 3 maintains consistency with the PR objective.


539-539: Consistent parameter simplification throughout the file.

Continued the pattern of replacing 4.0F with 4 in hand positioning parameters, maintaining consistency across the codebase.

src/main/java/com/paneedah/mwc/items/guns/MalyukFactory.java (14)

100-100: Consistent floating-point literal replacement to integer

The change from GL11.glTranslatef(0f, 0.35f, 3.0f) to GL11.glTranslatef(0f, 0.35f, 3) maintains functionality while following the code style guidelines to use integer literals instead of forcing .0f notation for whole numbers.


104-104: Consistent floating-point literal replacement to integer

Similar replacement of .0f to integer literal for the Z parameter in the translation function. This change is consistent with the PR's goal of removing unnecessary float declarations.


109-109: Consistent floating-point literal replacement to integer

Same pattern of simplifying 3.0f to 3 for the Z parameter in the translation function, making the code cleaner while maintaining identical behavior.


121-121: Consistent floating-point literal replacement to integer

Changed the third parameter in glTranslatef from 0.0f to 0, which simplifies the code while maintaining the same value.


185-185: Consistent floating-point literal replacement to integer

Simplified GL11.glTranslatef(-0.06F, -1.18F, -1.0F) to GL11.glTranslatef(-0.06F, -1.18F, -1) by removing the unnecessary trailing .0F for the whole number value.


194-194: Consistent floating-point literal replacement to integer

Simplified the Z parameter from -1.0F to -1 in the glTranslatef call, maintaining consistent style throughout the codebase.


203-203: Consistent floating-point literal replacement to integer

Replaced -1.0F with -1 in the Z parameter of the translation function, adhering to the cleaner code style established in this PR.


212-212: Consistent floating-point literal replacement to integer

Same pattern of simplifying -1.0F to -1 for the Z parameter, maintaining consistency across the codebase.


236-236: Consistent floating-point literal replacement to integer

Changed translation Z parameter from -1.0F to -1, following the same pattern as other changes in this file.


287-287: Consistent floating-point literal replacement to integer

Replaced -2.0F with -2 in the VGrip translation, maintaining consistent use of integer literals when possible.


329-329: Consistent floating-point literal replacement to integer

Simplified .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) for cleaner code while maintaining identical functionality.


338-338: Consistent floating-point literal replacement to integer

Changed .withScale(2.8F, 2.8F, 4.0F) to .withScale(2.8F, 2.8F, 4), removing the trailing .0F from the third parameter.


497-498: Consistent floating-point literal replacement to integer

Multiple instances of simplifying .0f to integers in the zoom positioning adjustments, maintaining consistent integer usage for whole numbers across the file.

Also applies to: 509-510, 521-522, 527-534


587-587: Consistent floating-point literal replacement to integer

Simplified .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) in the first-person hand positioning, removing unnecessary .0F notation.

src/main/java/com/paneedah/mwc/items/guns/APC9Factory.java (6)

145-145: Consistent floating-point literal replacement to integer

Changed -2.0F to -2 in the translation function, simplifying the code while maintaining the same value.


339-339: Consistent floating-point literal replacement to integer

Simplified .withScale(3.0F, 3.0F, 3.0F) to .withScale(3, 3, 3) for cleaner code while maintaining identical functionality.


348-348: Consistent floating-point literal replacement to integer

Changed .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4), removing the trailing .0F from the third parameter.


356-357: Consistent floating-point literal replacement to integer

Two consecutive lines with .withScale(3.0F, 3.0F, 3.0F) changed to .withScale(3, 3, 3), improving code readability by using simpler integer representation.


507-507: Consistent floating-point literal replacement to integer

Replaced 0.0f with just 0 in GL11.glTranslatef(0F, 0, 1f), continuing the pattern of simplifying float notation.


587-587: Consistent floating-point literal replacement to integer

Simplified .withScale(2.6F, 2.6F, 4.0F) to .withScale(2.6F, 2.6F, 4) in the first-person hand positioning, removing unnecessary .0F notation.

src/main/java/com/paneedah/mwc/models/ACRPrecisionHandguard.java (8)

31-42: Consistent floating-point literal replacement to integer

Multiple ModelBox constructor calls have been updated to use 0 instead of 0.0F for the last parameter, which simplifies the code while maintaining the same functionality. This change is consistent across all model box definitions in this file.


83-83: Consistent floating-point literal replacement to integer

Changed setRotationAngle(ACR2_r1, 0.0F, 0.0F, 0.9295F) to setRotationAngle(ACR2_r1, 0, 0, 0.9295F), replacing zero float values with integer zeros.


84-86: Consistent floating-point literal replacement to integer

Multiple cubeList.add calls updated to use 0 instead of 0.0F for the last parameter in the ModelBox constructor, maintaining consistency with the overall code style changes in this PR.


91-97: Consistent floating-point literal replacement to integer

The rotation angle and multiple ModelBox constructor calls updated to use integer 0 instead of float 0.0F, making the code cleaner while maintaining identical behavior.


101-114: Consistent floating-point literal replacement to integer

Same pattern of simplifying rotation angles and ModelBox parameters from 0.0F to 0 applied consistently throughout this section.


119-145: Consistent floating-point literal replacement to integer

Multiple model transformations updated to use 0 rather than 0.0F for both rotation angles and the last parameter of the ModelBox constructor, maintaining a consistent style throughout the file.


150-160: Consistent floating-point literal replacement to integer

Same pattern of simplification applied to rotation angles and ModelBox parameters in the bone2_r1 model segment.


165-229: Consistent floating-point literal replacement to integer

Extensive set of model box definitions with the same pattern of replacing 0.0F with 0 for the last parameter in all ModelBox constructor calls, maintaining consistency throughout the entire model definition.

src/main/java/com/paneedah/mwc/asm/Interceptors.java (12)

79-81: Consistent floating-point literal replacement to integer

Changed condition from authenticFOV != 0.0f to authenticFOV != 0 and MC.gameSettings.fovSetting == 80.0F to MC.gameSettings.fovSetting == 80, simplifying the number representation while maintaining identical behavior.


97-99: Consistent floating-point literal replacement to integer

FOV setting comparison changed from 80.0F to 80, and assignment of authenticFOV = 0.0f to authenticFOV = 0, following the pattern of using integers where possible.


155-155: Consistent floating-point literal replacement to integer

Changed rotation function from GL11.glRotatef(-roll, 0.0f, 0.0f, 1.0f) to GL11.glRotatef(-roll, 0, 0, 1), simplifying the zeros while maintaining the same functionality.


397-397: Consistent floating-point literal replacement to integer

Changed scalar initialization from float scalar = 0.0f to float scalar = 0, making the code cleaner while retaining identical functionality.


423-423: Consistent floating-point literal replacement to integer

Changed scale multiplier initialization from float sMult = 1.0f to float sMult = 1, following the pattern of simplifying float literals where possible.


433-436: Consistent floating-point literal replacement to integer

Multiple changes to GL transformation calls, replacing integer values with .0f suffix with simple integers, making the code cleaner while maintaining the same rendering behavior.


458-462: Consistent floating-point literal replacement to integer

Multiple GL11.glTranslatef and GL11.glRotatef calls updated to use integers where whole numbers were previously represented with .0f suffix, maintaining identical functionality with cleaner code.


483-484: Consistent floating-point literal replacement to integer

Rotation and scale parameters simplified from floating point with .0f suffix to integers where possible, following the consistent pattern throughout this PR.


524-524: Consistent floating-point literal replacement to integer

Changed amplitude initialization from float appliedAmplitude = 0.0f to float appliedAmplitude = 0, simplifying the number representation.


602-604: Consistent floating-point literal replacement to integer

Condition and rotation value simplified from floating point with .0f suffix to integers where appropriate, maintaining the same behavior with cleaner code.


607-609: Consistent floating-point literal replacement to integer

Comparison operator changed from f < 0.0F to f < 0, simplifying the code while maintaining identical functionality.


614-624: Consistent floating-point literal replacement to integer

Multiple GL11.glRotatef calls updated to use integers for parameters that represent whole numbers, eliminating unnecessary .0f suffixes while maintaining identical behavior.

src/main/java/com/paneedah/mwc/items/guns/M249Factory.java (1)

81-81: LGTM! Proper simplification of float literals.

These changes consistently replace floating-point literals (like 0.0F, -4.0F) with integer literals (0, -4) where the fractional part is zero. Since these methods accept float parameters, the integers will be implicitly converted to floats at compile time with no change in functionality.

This simplification aligns with the PR objective of removing unnecessary float declarations that use the .0f format for clarity and simplicity.

Also applies to: 87-87, 96-96, 238-238, 247-247, 256-256, 278-278, 287-287, 296-296, 305-305, 334-334, 338-338, 369-369, 378-378, 528-528

src/main/java/com/paneedah/mwc/entities/Entities.java (1)

46-47: LGTM! Simplified entity parameters correctly.

These changes effectively replace floating-point literals with integer literals in the AI task configurations for various entities. Since the methods accept float parameters but the values have no fractional part, this simplification is appropriate and maintains identical functionality.

This cleanup supports the PR's goal of enhancing code clarity by removing unnecessary float specifications.

Also applies to: 49-49, 97-98, 100-100, 135-135, 142-143, 185-185, 192-193, 235-235, 242-243

src/main/java/com/paneedah/mwc/models/ACRSquareDropHandguard.java (1)

44-44: LGTM! Consistent application of float literal simplification.

These changes replace floating-point literals (like 0.0F) with integer literals (0) throughout model construction. The changes affect:

  1. ModelBox constructor parameters
  2. setRotationAngle method parameters
  3. setRotationPoint method parameters

Since all these methods expect float parameters and these values have no fractional part, this simplification maintains identical rendering behavior while improving code readability.

Also applies to: 49-82, 83-91, 96-103, 108-109, 122-123, 128-130, 135-137, 142-144, 149-151, 156-158, 163-165, 170-172, 177-179, 184-186, 191-193, 198-200, 205-207, 212-214, 217-220, 225-235, 238-250

src/main/java/com/paneedah/mwc/items/guns/MAC10Factory.java (1)

106-106: LGTM! Successful float literal simplification.

These changes replace floating-point literals (such as -1.0F, -0.0F) with integer literals (-1, -0) in GL11 transformations and scale operations. This maintains identical functionality while improving code readability.

Note: Even the change from -0.0F to -0 is safe despite the technical difference in floating-point representation, as it won't affect the rendering behavior in this context.

Also applies to: 127-127, 310-310, 562-562, 580-580

src/main/java/com/paneedah/mwc/models/AACHoneyBadgerReceiver.java (1)

1284-1385: Render Method: Intentional Commenting and Unchanged Logic
The render method mostly contains commented-out calls (presumably for debugging or selective rendering) and a few active render calls. There are no functional changes here, and the commented code appears to be left intentionally. No action is required for this section.

src/main/java/com/paneedah/mwc/items/guns/FMG9Factory.java (10)

165-167: Standardize Numeric Literal in Translation Call
Replacing -0.0F with -0 improves clarity by using an integer literal for a whole-number value. This change meets the PR objective of removing unnecessary float declarations.


175-177: Consistent Literal Cleanup in Holographic Attachment
The update changes the translation parameter from -0.0F to -0, ensuring uniform numeric representation for whole numbers in similar attachment transformations.


185-187: Refined Translation Parameter Format for EotechHybrid2 Attachment
Changing -0.0F to -0 standardizes the numeric literal usage, enhancing consistency and readability.


248-250: Selective Literal Cleanup in Silencer9mm Attachment
This change retains the fractional precision for non-whole numbers (e.g., -0.165F and -4.7F) while using an integer literal for the whole number (-1). It accurately applies the cleanup strategy without affecting numerical accuracy.


278-278: Simplified Scale Parameters
Converting scale values from 3.0F to 3 improves readability by using an integer representation for whole-number values. This is in full alignment with the cleanup guidelines.


386-387: Refined Translation Literals for MicroReflex Attachment
The translation call now uses 0 instead of 0.0F for whole-number values, streamlining numeric literal formatting. This update is consistent with the PR’s objective.


391-392: Cleaned Up Zero Literal in NightRaider Attachment
Changing the literal from 0.0F to 0 ensures that whole-number values are represented uniformly throughout the code.


446-447: Consistent Numeric Format in MicroT1 Attachment
The translation call has been updated to use simplified numeric literals, removing unnecessary float precision for values that are whole numbers.


451-452: Standardized Translation Literals for AimpointCompM5 Attachment
Replacing the redundant float notation in the translation call (from 0.0F to 0) improves consistency across attachments.


483-483: Refactored Scale Literal in Hand Positioning
Modifying the scale parameters to 2.6F, 2.6F, 4 removes the unnecessary decimal for the whole number, which streamlines the code while preserving intended behavior.

@strubium strubium mentioned this pull request Nov 11, 2025
5 tasks
@Desoroxxx Desoroxxx marked this pull request as draft November 24, 2025 10:59
@Desoroxxx
Copy link
Copy Markdown
Member

Is this still relevant?
There are a lot of conflicts now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants