forked from DimensionalDevelopment/JustEnoughIDs
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from jchung01/genlayer-modsupport
More mod support for river gen (MorePlanets/Atum)
- Loading branch information
Showing
7 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/org/dimdev/jeid/mixin/modsupport/atum/MixinGenLayerAtumRiverMix.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.dimdev.jeid.mixin.modsupport.atum; | ||
|
||
import com.teammetallurgy.atum.world.gen.layer.GenLayerAtumRiverMix; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(value = GenLayerAtumRiverMix.class) | ||
public class MixinGenLayerAtumRiverMix | ||
{ | ||
@ModifyConstant(method = "getInts", constant = @Constant(intValue = 255)) | ||
private int getBitMask(int oldValue) { | ||
return 0xFFFFFFFF; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/org/dimdev/jeid/mixin/modsupport/moreplanets/MixinGenLayerRiversMix.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.dimdev.jeid.mixin.modsupport.moreplanets; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
import stevekung.mods.moreplanets.planets.chalos.world.gen.biome.layer.GenLayerSlimelyStreamMix; | ||
import stevekung.mods.moreplanets.planets.fronos.world.gen.biome.layer.GenLayerFronosRiverMix; | ||
import stevekung.mods.moreplanets.planets.nibiru.world.gen.biome.layer.GenLayerNibiruRiverMix; | ||
|
||
@Mixin(value = {GenLayerFronosRiverMix.class, GenLayerNibiruRiverMix.class, GenLayerSlimelyStreamMix.class}) | ||
public class MixinGenLayerRiversMix { | ||
@ModifyConstant(method = "getInts", constant = @Constant(intValue = 255)) | ||
private int getBitMask(int oldValue) { | ||
return 0xFFFFFFFF; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"package": "org.dimdev.jeid.mixin.modsupport.atum", | ||
"required": true, | ||
"refmap": "mixins.jeid.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"minVersion": "0.6", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"MixinGenLayerAtumRiverMix" | ||
], | ||
"injectors": { | ||
"maxShiftBy": 10 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"package": "org.dimdev.jeid.mixin.modsupport.moreplanets", | ||
"required": true, | ||
"refmap": "mixins.jeid.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"minVersion": "0.6", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"MixinGenLayerRiversMix" | ||
], | ||
"injectors": { | ||
"maxShiftBy": 10 | ||
} | ||
} |