Skip to content

Commit

Permalink
Update to MC 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 15, 2024
1 parent c9e3b98 commit fd91759
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 25 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'net.neoforged.gradle.userdev' version '7.0.97'
id 'net.neoforged.gradle.userdev' version '7.0.145'
id 'com.diffplug.spotless' version '5.14.3'
}

Expand Down Expand Up @@ -27,7 +27,7 @@ base {
}

// Set Java details
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
compileJava.options.compilerArgs << "-Xmaxerrs" << "9999"
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))

Expand Down Expand Up @@ -229,6 +229,8 @@ publishing {

idea {
module {
downloadSources = true
downloadJavadoc = true
for (String excludeDirName in ["run", "out", "logs", "gradle"]) {
File excludeDir = new File(projectDir, excludeDirName)
excludeDirs.add(excludeDir)
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mod_id=evilcraft-compat
mod_version=1.1.0
minecraft_version=1.20.4
neoforge_version=20.4.160-beta
cyclopscore_version=1.19.0-429
evilcraft_version=1.2.37-418
minecraft_version=1.21
neoforge_version=21.0.43-beta
cyclopscore_version=1.19.1-462
evilcraft_version=1.2.38-437
release_type=release

commoncapabilities_version=2.9.1-114
commoncapabilities_version=2.9.1-126
waila_version=1.10.8:B72_1.15.2
mantle_version=1.12-1.3.1.22
tconstruct_version=1.12.2-2.9.0.55
Expand All @@ -15,7 +15,7 @@ guideapi_version=2.1.4-57
BM_version=2.2.12-97
EE3_version=0.3.507
IC2_version=2.8.7-ex112
jei_version=17.3.0.52
jei_version=19.5.0.31
ie_version=0.12-90-521
enderio_version=1.12.2:5.0.22
endercore_version=1.12.2:0.5.22
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
*/
public class RegistryEntriesCompat {

public static final DeferredHolder<Item, Item> ITEM_INVIGORATING_PENDANT = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:invigorating_pendant"));
public static final DeferredHolder<Item, Item> ITEM_PRIMED_PENDANT = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:primed_pendant"));
public static final DeferredHolder<Item, Item> ITEM_KINETICATOR = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:kineticator"));
public static final DeferredHolder<Item, Item> ITEM_KINETICATOR_REPELLING = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:kineticator_repelling"));
public static final DeferredHolder<Item, Item> ITEM_MACE_OF_DESTRUCTION = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:mace_of_destruction"));
public static final DeferredHolder<Item, Item> ITEM_NECROMANCER_STAFF = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:necromancer_staff"));
public static final DeferredHolder<Item, Item> ITEM_FLESH_REJUVENATED = DeferredHolder.create(Registries.ITEM, new ResourceLocation("evilcraft:flesh_rejuvenated"));
public static final DeferredHolder<Item, Item> ITEM_INVIGORATING_PENDANT = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:invigorating_pendant"));
public static final DeferredHolder<Item, Item> ITEM_PRIMED_PENDANT = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:primed_pendant"));
public static final DeferredHolder<Item, Item> ITEM_KINETICATOR = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:kineticator"));
public static final DeferredHolder<Item, Item> ITEM_KINETICATOR_REPELLING = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:kineticator_repelling"));
public static final DeferredHolder<Item, Item> ITEM_MACE_OF_DESTRUCTION = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:mace_of_destruction"));
public static final DeferredHolder<Item, Item> ITEM_NECROMANCER_STAFF = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:necromancer_staff"));
public static final DeferredHolder<Item, Item> ITEM_FLESH_REJUVENATED = DeferredHolder.create(Registries.ITEM, ResourceLocation.parse("evilcraft:flesh_rejuvenated"));

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean isValidSizeInput(IngredientComponent<?, ?> component, int size) {
@Nullable
@Override
protected IInventoryFluidTier getRecipeInputContainer(IMixedIngredients input) {
IInventoryFluidTier inventory = new InventoryFluidTier(NonNullList.withSize(1, ItemStack.EMPTY), NonNullList.withSize(1, FluidStack.EMPTY),
InventoryFluidTier inventory = new InventoryFluidTier(NonNullList.withSize(1, ItemStack.EMPTY), NonNullList.withSize(1, FluidStack.EMPTY),
host.getTileWorkingMetadata().getTier(host.getInventory()));
if (!input.getInstances(IngredientComponent.ITEMSTACK).isEmpty()) {
inventory.setItem(0, input.getInstances(IngredientComponent.ITEMSTACK).get(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void registerGuiHandlers(IGuiHandlerRegistration registry) {

@Override
public ResourceLocation getPluginUid() {
return new ResourceLocation(Reference.MOD_ID, "main");
return ResourceLocation.fromNamespaceAndPath(Reference.MOD_ID, "main");
}

public static MutableComponent getDurationSecondsTextComponent(int durationTicks) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class BloodInfuserRecipeCategory implements IRecipeCategory<BloodInfuserR
private final IDrawable tankOverlay;

public BloodInfuserRecipeCategory(IGuiHelper guiHelper) {
ResourceLocation resourceLocation = new ResourceLocation(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "blood_infuser_gui_jei.png");
ResourceLocation resourceLocation = ResourceLocation.fromNamespaceAndPath(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "blood_infuser_gui_jei.png");
this.background = guiHelper.createDrawable(resourceLocation, 0, 0, 130, 70);
this.icon = guiHelper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(RegistryEntries.BLOCK_BLOOD_INFUSER.get()));
IDrawableStatic arrowDrawable = guiHelper.createDrawable(resourceLocation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public CommonEnvironmentalAccumulatorRecipeCategory(IGuiHelper guiHelper, Pair<I
this.weatherInPos = weatherInPos;
this.weatherOutPos = weatherOutPos;
weatherIcons = Maps.newHashMap();
ResourceLocation weatherResourceLocation = new ResourceLocation(Reference.MOD_ID + ":" + Reference.TEXTURE_PATH_GUI + "weathers.png");
ResourceLocation weatherResourceLocation = ResourceLocation.parse(Reference.MOD_ID + ":" + Reference.TEXTURE_PATH_GUI + "weathers.png");
weatherIcons.put(WeatherType.CLEAR, guiHelper.createDrawable(weatherResourceLocation, 0, 0, 16, 16));
weatherIcons.put(WeatherType.RAIN, guiHelper.createDrawable(weatherResourceLocation, 16, 0, 16, 16));
weatherIcons.put(WeatherType.LIGHTNING, guiHelper.createDrawable(weatherResourceLocation, 32, 0, 16, 16));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class EnvironmentalAccumulatorRecipeCategory extends CommonEnvironmentalA

public EnvironmentalAccumulatorRecipeCategory(IGuiHelper guiHelper) {
super(guiHelper, Pair.of(2, 8), Pair.of(76, 8));
ResourceLocation resourceLocation = new ResourceLocation(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "environmental_accumulator_gui_jei.png");
ResourceLocation resourceLocation = ResourceLocation.fromNamespaceAndPath(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "environmental_accumulator_gui_jei.png");
this.background = guiHelper.createDrawable(resourceLocation, 0, 0, 94, 54);
this.icon = guiHelper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(RegistryEntries.BLOCK_ENVIRONMENTAL_ACCUMULATOR.get()));
IDrawableStatic arrowDrawable = guiHelper.createDrawable(resourceLocation, 94, 0, 5, 34);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class SanguinaryEnvironmentalAccumulatorRecipeCategory extends CommonEnvi

public SanguinaryEnvironmentalAccumulatorRecipeCategory(IGuiHelper guiHelper) {
super(guiHelper, Pair.of(42, 8), Pair.of(96, 8));
ResourceLocation resourceLocation = new ResourceLocation(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "sanguinary_environmental_accumulator_gui_jei.png");
ResourceLocation resourceLocation = ResourceLocation.fromNamespaceAndPath(Reference.MOD_ID, Reference.TEXTURE_PATH_GUI + "sanguinary_environmental_accumulator_gui_jei.png");
this.background = guiHelper.createDrawable(resourceLocation, 0, 0, 130, 70);
this.icon = guiHelper.createDrawableIngredient(VanillaTypes.ITEM_STACK, new ItemStack(RegistryEntries.BLOCK_SANGUINARY_ENVIRONMENTAL_ACCUMULATOR.get()));
IDrawableStatic arrowDrawable = guiHelper.createDrawable(resourceLocation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ EvilCraft compatibility with other mods.
[[dependencies.evilcraftcompat]]
modId="cyclopscore"
type="required"
versionRange="[1.19.0,)"
versionRange="[1.19.1,)"
ordering="NONE"
side="BOTH"
[[dependencies.evilcraftcompat]]
modId="neoforge"
type="required"
versionRange="[20.4,)"
versionRange="[21.0.43-beta,)"
ordering="NONE"
side="BOTH"
[[dependencies.evilcraftcompat]]
modId="minecraft"
type="required"
versionRange="[1.20.4,]"
versionRange="[1.21,]"
ordering="NONE"
side="BOTH"

0 comments on commit fd91759

Please sign in to comment.