Skip to content

Commit

Permalink
Prep for upcoming extra method in IGenderArmor
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Feb 26, 2024
1 parent 1ec7c2d commit d3ea197
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gradle-publish.yml
Expand Up @@ -50,6 +50,7 @@ jobs:
build/neoForge
build/neoForm
~/.gradle
.gradle
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Expand Up @@ -9,7 +9,7 @@ pluginManagement {
}

plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}

include 'annotation-processor'
Expand Up @@ -7,19 +7,23 @@
import net.neoforged.neoforge.capabilities.ItemCapability;
import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent;

public record MekanismGenderArmor(boolean coversBreasts, boolean alwaysHidesBreasts, float physicsResistance, float tightness) implements IGenderArmor {
public record MekanismGenderArmor(boolean coversBreasts, boolean alwaysHidesBreasts, float physicsResistance, float tightness, boolean armorStandsCopySettings) implements IGenderArmor {

private static final ItemCapability<IGenderArmor, Void> GENDER_ARMOR_CAPABILITY = ItemCapability.createVoid(new ResourceLocation(MekanismHooks.WILDFIRE_GENDER_MOD_ID, "gender_armor"), IGenderArmor.class);
public static final MekanismGenderArmor OPEN_FRONT = new MekanismGenderArmor(false, false, 0, 0);
public static final MekanismGenderArmor HIDES_BREASTS = new MekanismGenderArmor(true, true, 0, 0);
static final MekanismGenderArmor HAZMAT = new MekanismGenderArmor(0.5F, 0.25F);
public static final MekanismGenderArmor OPEN_FRONT = new MekanismGenderArmor(false, false, 0, 0, false);
public static final MekanismGenderArmor HIDES_BREASTS = new MekanismGenderArmor(true, true, 0, 0, false);
static final MekanismGenderArmor HAZMAT = new MekanismGenderArmor(0.5F, 0.25F, false);

public MekanismGenderArmor(float physicsResistance) {
this(physicsResistance, 0);
}

public MekanismGenderArmor(float physicsResistance, float tightness) {
this(true, false, physicsResistance, tightness);
this(physicsResistance, tightness, true);
}

public MekanismGenderArmor(float physicsResistance, float tightness, boolean armorStandsCopySettings) {
this(true, false, physicsResistance, tightness, armorStandsCopySettings);
}

public MekanismGenderArmor {
Expand Down

0 comments on commit d3ea197

Please sign in to comment.