mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-13 23:04:01 +00:00
pinhole mixin linter fixes
This commit is contained in:
4 files changed
+18
-10
No files matched your search
+3
@@ -31,6 +31,8 @@ import org.spongepowered.asm.mixin.Overwrite;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@Mixin(value = BiomeWandItem.class,
|
||||
remap = false)
|
||||
@@ -39,6 +41,7 @@ public abstract class BiomeWandItemMixin {
|
||||
* @author FalsePattern
|
||||
* @reason Biome ID extension
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Overwrite
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
|
||||
+8
-3
@@ -78,9 +78,14 @@ public abstract class BiomesManagerMixin {
|
||||
return ExtendedConstants.biomeIDCount;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = {"preinit", "setUpBiomesFolder"},
|
||||
constant = {@Constant(stringValue = "\\biomes"), @Constant(stringValue = "\\main.cfg")})
|
||||
private static String fixPaths(String original) {
|
||||
@ModifyConstant(method = "preinit",
|
||||
constant = @Constant(stringValue = "\\biomes"))
|
||||
private static String fixPaths1(String original) {
|
||||
return AIDCStringFixer.fixString(original);
|
||||
}
|
||||
@ModifyConstant(method = "setUpBiomesFolder",
|
||||
constant = @Constant(stringValue = "\\main.cfg"))
|
||||
private static String fixPaths2(String original) {
|
||||
return AIDCStringFixer.fixString(original);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,14 +43,14 @@ public abstract class AdvancedRocketryMixin {
|
||||
@Constant(intValue = 118, ordinal = 0),
|
||||
@Constant(intValue = 119, ordinal = 0)},
|
||||
require = 10)
|
||||
private static int shiftBiomeIDsUp(int constant) {
|
||||
private int shiftBiomeIDsUp(int constant) {
|
||||
return constant + 9000;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "preInit",
|
||||
constant = @Constant(intValue = -2),
|
||||
require = 1)
|
||||
private static int changeDefaultDimID(int constant) {
|
||||
private int changeDefaultDimID(int constant) {
|
||||
return -5613;
|
||||
}
|
||||
}
|
||||
+5
-5
@@ -48,19 +48,19 @@ import java.util.Random;
|
||||
public abstract class MessagePaintBiomeMixin {
|
||||
|
||||
@Shadow
|
||||
private int posZ;
|
||||
int posZ;
|
||||
|
||||
@Shadow
|
||||
private int posX;
|
||||
int posX;
|
||||
|
||||
@Shadow
|
||||
private int biomeID;
|
||||
int biomeID;
|
||||
|
||||
@Shadow
|
||||
private int dimensionID;
|
||||
int dimensionID;
|
||||
|
||||
@Shadow
|
||||
private int posY;
|
||||
int posY;
|
||||
|
||||
/**
|
||||
* @author FalsePattern
|
||||
|
||||
Reference in new issue
Block a user