This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
...in/java/uk/bobbytables/jeidsi/compat/thebetweenlands/mixins/MixinBlockSpreadingDeath.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,23 @@ | ||
package uk.bobbytables.jeidsi.compat.thebetweenlands.mixins; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.World; | ||
import net.minecraft.world.biome.Biome; | ||
import net.minecraft.world.chunk.Chunk; | ||
import org.dimdev.jeid.INewChunk; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import thebetweenlands.common.block.terrain.BlockSpreadingDeath; | ||
|
||
@Mixin(BlockSpreadingDeath.class) | ||
public class MixinBlockSpreadingDeath { | ||
@Inject(method = "convertBiome", at = @At("HEAD"), cancellable = true, remap = false) | ||
private void convertBiomes(World world, BlockPos pos, Biome biome, CallbackInfo ci) { | ||
Chunk chunk = world.getChunk(pos); | ||
((INewChunk) chunk).getIntBiomeArray()[(pos.getZ() & 15) << 4 | pos.getX() & 15] = Biome.getIdForBiome(biome); | ||
chunk.markDirty(); | ||
ci.cancel(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...k/bobbytables/jeidsi/compat/thebetweenlands/mixins/MixinGenLayerVoronoiZoomInstanced.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,14 @@ | ||
package uk.bobbytables.jeidsi.compat.thebetweenlands.mixins; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
import thebetweenlands.common.world.gen.layer.GenLayerVoronoiZoomInstanced; | ||
|
||
@Mixin(GenLayerVoronoiZoomInstanced.class) | ||
public abstract class MixinGenLayerVoronoiZoomInstanced { | ||
@ModifyConstant(method = "func_75904_a", constant = @Constant(intValue = 255), remap = false) | ||
private int getBitMask(int oldValue) { | ||
return 0xFFFFFFFF; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...in/java/uk/bobbytables/jeidsi/compat/tropicraft/mixins/MixinGenLayerTropiVoronoiZoom.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,14 @@ | ||
package uk.bobbytables.jeidsi.compat.tropicraft.mixins; | ||
|
||
import net.tropicraft.core.common.worldgen.genlayer.GenLayerTropiVoronoiZoom; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
|
||
@Mixin(GenLayerTropiVoronoiZoom.class) | ||
public class MixinGenLayerTropiVoronoiZoom { | ||
@ModifyConstant(method = "func_75904_a", constant = @Constant(intValue = 255), remap = false) | ||
private int getBitMask(int oldValue) { | ||
return 0xFFFFFFFF; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...main/java/uk/bobbytables/jeidsi/compat/twilightforest/mixins/MixinGenLayerTFRiverMix.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,14 @@ | ||
package uk.bobbytables.jeidsi.compat.twilightforest.mixins; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Constant; | ||
import org.spongepowered.asm.mixin.injection.ModifyConstant; | ||
import twilightforest.world.layer.GenLayerTFRiverMix; | ||
|
||
@Mixin(GenLayerTFRiverMix.class) | ||
public class MixinGenLayerTFRiverMix { | ||
@ModifyConstant(method = "func_75904_a", constant = @Constant(intValue = 255), remap = false) | ||
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
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,12 @@ | ||
{ | ||
"package": "uk.bobbytables.jeidsi.compat.thebetweenlands", | ||
"required": true, | ||
"refmap": "mixins.jeidsi.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"minVersion": "0.6", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"mixins.MixinBlockSpreadingDeath", | ||
"mixins.MixinGenLayerVoronoiZoomInstanced" | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"package": "uk.bobbytables.jeidsi.compat.tropicraft.mixins", | ||
"required": true, | ||
"refmap": "mixins.jeidsi.refmap.json", | ||
"target": "@env(DEFAULT)", | ||
"minVersion": "0.6", | ||
"compatibilityLevel": "JAVA_8", | ||
"mixins": [ | ||
"MixinGenLayerTropiVoronoiZoom" | ||
] | ||
} |
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