Skip to content

Commit a872899

Browse files
committed
Update deps and adjust to MC changes for looking at helpers
1 parent ffd0a3d commit a872899

35 files changed

+335
-541
lines changed

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.util.function.Consumer
1212

1313
plugins {
1414
id 'org.ajoberstar.grgit.service' version '5.2.2'
15-
id 'net.darkhax.curseforgegradle' version '1.1.18'
15+
id 'net.darkhax.curseforgegradle' version '1.1.23'
1616
id "com.modrinth.minotaur" version "2.+"
1717
id 'java'
1818
id 'eclipse'
@@ -479,13 +479,12 @@ dependencies {
479479
compileOnly("top.theillusivec4.curios:curios-neoforge:${curios_version}:api")
480480
compileOnly("com.blamejared.recipestages:RecipeStages:${recipe_stages_version}")
481481
compileOnly("curse.maven:opencomputers2-437654:${oc2_id}")
482-
compileOnly("cc.tweaked:cc-tweaked-${previous_minor_minecraft_version}-forge-api:${cc_tweaked_version}")
482+
compileOnly("cc.tweaked:cc-tweaked-1.20.5-forge-api:${cc_tweaked_version}")
483483
//localRuntime("cc.tweaked:cc-tweaked-${minecraft_version}-forge:${cc_tweaked_version}")
484484
compileOnly("curse.maven:female-gender-forge-481655:${wildfire_gender_mod_id}")
485485

486486
//Dependencies for data generators for mod compat reference
487-
//TODO - 1.20.5: Switch back to datagenMainImplementation
488-
datagenMainCompileOnly("appeng:appliedenergistics2-neoforge:${ae2_version}")
487+
datagenMainImplementation("appeng:appliedenergistics2-neoforge:${ae2_version}")
489488
//TODO - 1.20.5: Switch back to datagenMainImplementation
490489
//datagenMainRuntimeOnly("com.github.glitchfiend:GlitchCore-neoforge:${previous_minor_minecraft_version}-${glitchcore_version}")
491490
//datagenMainRuntimeOnly("com.github.glitchfiend:TerraBlender-neoforge:${previous_minor_minecraft_version}-${terrablender_version}")

gradle.properties

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ minecraft_version=1.20.6
88
previous_minecraft_version=1.20.1
99
previous_minor_minecraft_version=1.20.4
1010
loader_version_range=[2,)
11-
forge_version=20.6.18-beta
11+
forge_version=20.6.22-beta
1212
mod_version=10.5.20
1313
#This determines the minimum version of forge required to use Mekanism
1414
# Only bump it whenever we need access to a feature in forge that is not available in earlier versions
15-
forge_version_range=[20.6.18-beta,)
15+
forge_version_range=[20.6.22-beta,)
1616
minecraft_version_range=[1.20.6]
1717
#This specifies what type of release it will be uploaded to CurseForge and Modrinth as
1818
# options are: alpha, beta, release
@@ -23,8 +23,8 @@ junit_version=5.10.2
2323
quicktheories_version=0.26
2424

2525
#Parchment settings
26-
neogradle.subsystems.parchment.minecraftVersion=1.20.4
27-
neogradle.subsystems.parchment.mappingsVersion=2024.02.25
26+
neogradle.subsystems.parchment.minecraftVersion=1.20.6
27+
neogradle.subsystems.parchment.mappingsVersion=2024.05.01
2828

2929
#misc settings
3030
# recipe viewer, currently accepts: jei, emi, hybrid
@@ -34,15 +34,12 @@ recipe_viewer=emi
3434
yamlops_version=1.2.0
3535

3636
#Mod dependencies
37-
crafttweaker_version=17.0.3
38-
curios_version=7.3.4+1.20.4
37+
cc_tweaked_version=1.110.3
3938
emi_version=1.1.6
40-
jade_api_id=5111969
41-
jade_id=5109393
42-
jei_version=17.3.0.49
43-
json_things_version=0.10.0
44-
top_version=1.20.4_neo-11.0.1-2
45-
wthit_version=10.4.0
39+
jade_api_id=5288706
40+
jade_id=5288504
41+
top_version=1.20.5_neo-11.1.1-2
42+
wthit_version=11.1.3
4643

4744
#Mod dependency min version ranges
4845

@@ -51,25 +48,28 @@ wthit_version=10.4.0
5148

5249

5350
#Mod dependencies for recipes (only used by our data generators)
54-
ae2_version=17.12.0-beta
55-
biomesoplenty_version=19.0.0.71
56-
glitchcore_version=1.0.0.59
57-
terrablender_version=3.3.0.12
51+
ae2_version=18.1.1-alpha
5852

5953
#Outdated mod dependencies
60-
cc_tweaked_version=1.110.0
54+
crafttweaker_version=17.0.3
55+
curios_version=7.4.0+1.20.4
6156
ctm_version=1.1.7+11
62-
flux_networks_id=4651164
57+
flux_networks_id=5234697
58+
jei_version=17.3.0.52
6359
jeitweaker_version=8.0.5
60+
json_things_version=0.10.0
6461
oc2_id=3896581
6562
projecte_api_id=4860862
6663
recipe_stages_version=8.0.0.1
6764
wildfire_gender_mod_id=4603538
6865

6966
#Outdated mod dependencies for recipes
67+
biomesoplenty_version=19.0.0.89
7068
byg_id=5110925
7169
farmers_delight_id=5051242
70+
glitchcore_version=1.0.0.59
7271
ilikewood_id=4742845
7372
ilikewood_bop_id=4810696
7473
ilikewood_byg_id=4068511
7574
projecte_id=4860859
75+
terrablender_version=3.3.0.12

src/api/java/mekanism/api/chemical/ChemicalStack.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import net.minecraft.core.Registry;
3131
import net.minecraft.nbt.CompoundTag;
3232
import net.minecraft.nbt.Tag;
33-
import net.minecraft.network.FriendlyByteBuf;
3433
import net.minecraft.network.RegistryFriendlyByteBuf;
3534
import net.minecraft.network.chat.Component;
3635
import net.minecraft.network.codec.ByteBufCodecs;
@@ -545,18 +544,6 @@ public String getTranslationKey() {
545544
return getChemical().getTranslationKey();
546545
}
547546

548-
/**
549-
* Writes this ChemicalStack to a Packet Buffer.
550-
*
551-
* @param buffer - Buffer to write to.
552-
*/
553-
public void writeToPacket(FriendlyByteBuf buffer) {
554-
buffer.writeById(getRegistry()::getId, getChemical());
555-
if (!isEmpty()) {
556-
buffer.writeVarLong(getAmount());
557-
}
558-
}
559-
560547
/**
561548
* Checks if the two chemical stacks have the same chemical type. Ignores amount.
562549
*

src/api/java/mekanism/api/chemical/gas/GasStack.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import net.minecraft.nbt.CompoundTag;
1515
import net.minecraft.nbt.NbtOps;
1616
import net.minecraft.nbt.Tag;
17-
import net.minecraft.network.FriendlyByteBuf;
1817
import net.minecraft.network.RegistryFriendlyByteBuf;
1918
import net.minecraft.network.codec.StreamCodec;
2019
import net.minecraft.world.item.ItemStack;
@@ -141,14 +140,6 @@ protected Gas getEmptyChemical() {
141140
return MekanismAPI.EMPTY_GAS;
142141
}
143142

144-
public static GasStack readFromPacket(FriendlyByteBuf buf) {
145-
Gas gas = buf.readById(MekanismAPI.GAS_REGISTRY::byId);
146-
if (gas == null || gas.isEmptyType()) {
147-
return EMPTY;
148-
}
149-
return new GasStack(gas, buf.readVarLong());
150-
}
151-
152143
/**
153144
* Returns a copied form of this GasStack.
154145
*

src/api/java/mekanism/api/chemical/infuse/InfusionStack.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import net.minecraft.nbt.CompoundTag;
1515
import net.minecraft.nbt.NbtOps;
1616
import net.minecraft.nbt.Tag;
17-
import net.minecraft.network.FriendlyByteBuf;
1817
import net.minecraft.network.RegistryFriendlyByteBuf;
1918
import net.minecraft.network.codec.StreamCodec;
2019
import net.minecraft.world.item.ItemStack;
@@ -136,14 +135,6 @@ protected InfuseType getEmptyChemical() {
136135
return MekanismAPI.EMPTY_INFUSE_TYPE;
137136
}
138137

139-
public static InfusionStack readFromPacket(FriendlyByteBuf buf) {
140-
InfuseType infuseType = buf.readById(MekanismAPI.INFUSE_TYPE_REGISTRY::byId);
141-
if (infuseType == null || infuseType.isEmptyType()) {
142-
return EMPTY;
143-
}
144-
return new InfusionStack(infuseType, buf.readVarLong());
145-
}
146-
147138
/**
148139
* Returns a copied form of this InfusionStack.
149140
*

src/api/java/mekanism/api/chemical/pigment/PigmentStack.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import net.minecraft.nbt.CompoundTag;
1515
import net.minecraft.nbt.NbtOps;
1616
import net.minecraft.nbt.Tag;
17-
import net.minecraft.network.FriendlyByteBuf;
1817
import net.minecraft.network.RegistryFriendlyByteBuf;
1918
import net.minecraft.network.codec.StreamCodec;
2019
import net.minecraft.world.item.ItemStack;
@@ -136,14 +135,6 @@ protected Pigment getEmptyChemical() {
136135
return MekanismAPI.EMPTY_PIGMENT;
137136
}
138137

139-
public static PigmentStack readFromPacket(FriendlyByteBuf buf) {
140-
Pigment pigment = buf.readById(MekanismAPI.PIGMENT_REGISTRY::byId);
141-
if (pigment == null || pigment.isEmptyType()) {
142-
return EMPTY;
143-
}
144-
return new PigmentStack(pigment, buf.readVarLong());
145-
}
146-
147138
/**
148139
* Returns a copied form of this PigmentStack.
149140
*

src/api/java/mekanism/api/chemical/slurry/SlurryStack.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import net.minecraft.nbt.CompoundTag;
1515
import net.minecraft.nbt.NbtOps;
1616
import net.minecraft.nbt.Tag;
17-
import net.minecraft.network.FriendlyByteBuf;
1817
import net.minecraft.network.RegistryFriendlyByteBuf;
1918
import net.minecraft.network.codec.StreamCodec;
2019
import net.minecraft.world.item.ItemStack;
@@ -136,14 +135,6 @@ protected Slurry getEmptyChemical() {
136135
return MekanismAPI.EMPTY_SLURRY;
137136
}
138137

139-
public static SlurryStack readFromPacket(FriendlyByteBuf buf) {
140-
Slurry slurry = buf.readById(MekanismAPI.SLURRY_REGISTRY::byId);
141-
if (slurry == null || slurry.isEmptyType()) {
142-
return EMPTY;
143-
}
144-
return new SlurryStack(slurry, buf.readVarLong());
145-
}
146-
147138
/**
148139
* Returns a copied form of this SlurryStack.
149140
*

src/api/java/mekanism/api/math/FloatingLong.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,6 @@ public static FloatingLong createConst(long value, short decimal) {
178178
return new FloatingLong(value, clampDecimal(decimal), true);
179179
}
180180

181-
/**
182-
* Reads an immutable {@link FloatingLong} from a buffer
183-
*
184-
* @param buffer The {@link FriendlyByteBuf} to read from
185-
*
186-
* @return An immutable {@link FloatingLong}
187-
*/
188-
public static FloatingLong readFromBuffer(FriendlyByteBuf buffer) {
189-
return createConst(buffer.readVarLong(), buffer.readShort());
190-
}
191-
192181
private final boolean isConstant;
193182
private long value;
194183
private short decimal;
@@ -1082,16 +1071,6 @@ public FloatingLong absDifference(FloatingLong other) {
10821071
return add(other);
10831072
}
10841073

1085-
/**
1086-
* Writes this {@link FloatingLong} to the given buffer
1087-
*
1088-
* @param buffer The {@link FriendlyByteBuf} to write to.
1089-
*/
1090-
public void writeToBuffer(FriendlyByteBuf buffer) {
1091-
buffer.writeVarLong(value);
1092-
buffer.writeShort(decimal);
1093-
}
1094-
10951074
@Override
10961075
public String toString() {
10971076
return toString(DECIMAL_DIGITS);

src/datagen/main/java/mekanism/client/lang/MekanismLangProvider.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,7 @@ private void addJade() {
623623
addJadeConfigTooltip(JadeConstants.TOOLTIP_RENDERER, "Jade tooltip renderer");
624624
addJadeConfigTooltip(LookingAtUtils.ENERGY, "Energy");
625625
addJadeConfigTooltip(LookingAtUtils.FLUID, "Fluid");
626-
addJadeConfigTooltip(LookingAtUtils.GAS, "Gas");
627-
addJadeConfigTooltip(LookingAtUtils.INFUSE_TYPE, "Infuse Type");
628-
addJadeConfigTooltip(LookingAtUtils.PIGMENT, "Pigment");
629-
addJadeConfigTooltip(LookingAtUtils.SLURRY, "Slurry");
626+
addJadeConfigTooltip(LookingAtUtils.CHEMICAL, "Chemical");
630627
}
631628

632629
private void addJadeConfigTooltip(ResourceLocation location, String value) {

src/datagen/main/java/mekanism/client/state/BaseBlockStateProvider.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import mekanism.api.providers.IBlockProvider;
66
import mekanism.client.model.BaseBlockModelProvider;
77
import mekanism.common.DataGenJsonConstants;
8-
import mekanism.common.lib.FieldReflectionHelper;
98
import mekanism.common.registration.impl.FluidDeferredRegister;
109
import mekanism.common.registration.impl.FluidDeferredRegister.MekanismFluidType;
1110
import mekanism.common.util.RegistryUtils;
@@ -17,7 +16,6 @@
1716
import net.minecraft.world.level.block.state.BlockState;
1817
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
1918
import net.minecraft.world.level.block.state.properties.Property;
20-
import net.minecraft.world.level.material.FlowingFluid;
2119
import net.neoforged.neoforge.client.model.generators.BlockStateProvider;
2220
import net.neoforged.neoforge.client.model.generators.ConfiguredModel;
2321
import net.neoforged.neoforge.client.model.generators.ModelFile;
@@ -27,9 +25,6 @@
2725

2826
public abstract class BaseBlockStateProvider<PROVIDER extends BaseBlockModelProvider> extends BlockStateProvider {
2927

30-
//Note: We use reflection rather than an AT to help prevent accidentally using the field outside datagen
31-
private static final FieldReflectionHelper<LiquidBlock, FlowingFluid> FLUID = new FieldReflectionHelper<>(LiquidBlock.class, "fluid", () -> null);
32-
3328
private final String modid;
3429
private final PROVIDER modelProvider;
3530

0 commit comments

Comments
 (0)