mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-20 18:09:48 +00:00
restyle code
This commit is contained in:
6 files changed
+72
-71
No files matched your search
+1
-1
@@ -2,7 +2,6 @@ package com.falsepattern.endlessids.mixin.mixins.common.dragonapi;
|
||||
|
||||
import Reika.DragonAPI.Extras.IDType;
|
||||
import com.falsepattern.endlessids.constants.ExtendedConstants;
|
||||
import com.falsepattern.endlessids.constants.VanillaConstants;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.Constant;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
@@ -16,6 +15,7 @@ public abstract class IDTypeMixin {
|
||||
private static int extendBiomeIDs(int constant) {
|
||||
return ExtendedConstants.biomeIDCount - 2;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = {@Constant(intValue = 4095), @Constant(intValue = 32767)},
|
||||
require = 2)
|
||||
|
||||
+6
-4
@@ -13,9 +13,11 @@ import net.minecraft.world.chunk.Chunk;
|
||||
@Mixin(value = ChunkProviderRTG.class,
|
||||
remap = false)
|
||||
public abstract class ChunkProviderRTGMixin {
|
||||
@Shadow private BiomeGenBase[] baseBiomesList;
|
||||
@Shadow
|
||||
private BiomeGenBase[] baseBiomesList;
|
||||
|
||||
@Shadow private int[] xyinverted;
|
||||
@Shadow
|
||||
private int[] xyinverted;
|
||||
|
||||
@Redirect(method = "provideChunk",
|
||||
at = @At(value = "INVOKE",
|
||||
@@ -24,9 +26,9 @@ public abstract class ChunkProviderRTGMixin {
|
||||
remap = true,
|
||||
require = 1)
|
||||
private byte[] redictBiomeArrayFillLogic(Chunk chunk) {
|
||||
short[] biomes = ((IChunkMixin)chunk).getBiomeShortArray();
|
||||
short[] biomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
|
||||
for(int i = 0; i < biomes.length; ++i) {
|
||||
for (int i = 0; i < biomes.length; ++i) {
|
||||
biomes[i] = (short) baseBiomesList[xyinverted[i]].biomeID;
|
||||
}
|
||||
return new byte[0];
|
||||
|
||||
@@ -79,7 +79,8 @@ public enum Mixin implements IMixin {
|
||||
//endregion CoFHLib->common
|
||||
//region DragonAPI->common
|
||||
//region DragonAPI->common->vanilla
|
||||
DragonAPIGenLayerRiverMixMixin(Side.COMMON, require(TargetedMod.DRAGONAPI), "dragonapi.vanilla.GenLayerRiverMixMixin"),
|
||||
DragonAPIGenLayerRiverMixMixin(Side.COMMON, require(TargetedMod.DRAGONAPI),
|
||||
"dragonapi.vanilla.GenLayerRiverMixMixin"),
|
||||
//endregion DragonAPI->common->vanilla
|
||||
DragonAPIGenLayerRiverEventMixin(Side.COMMON, require(TargetedMod.DRAGONAPI), "dragonapi.GenLayerRiverEventMixin"),
|
||||
DragonAPIBlockPropertiesMixin(Side.COMMON, require(TargetedMod.DRAGONAPI), "dragonapi.BlockPropertiesMixin"),
|
||||
|
||||
Reference in new issue
Block a user