Skip to content

Commit a295a34

Browse files
committed
Update to MC 26.2
1 parent bf04a5a commit a295a34

9 files changed

Lines changed: 34 additions & 25 deletions

File tree

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
buildscript {
2+
configurations.classpath {
3+
resolutionStrategy {
4+
force 'net.minecraftforge:srgutils:0.6.2'
5+
}
6+
}
7+
}
8+
19
plugins {
210
id 'net.darkhax.curseforgegradle' version '1.1.28' apply false
311
id 'com.diffplug.spotless' version '6.25.0' apply false
412
id 'com.modrinth.minotaur' version '2.+' apply false
513

6-
id 'net.fabricmc.fabric-loom' version '1.15-SNAPSHOT' apply false
14+
id 'net.fabricmc.fabric-loom' version '1.17-SNAPSHOT' apply false
715
id 'net.neoforged.moddev' version '2.0.141' apply false
816
id 'net.minecraftforge.accesstransformers' version '5.0.3' apply false
917
id 'net.minecraftforge.gradle' version '[7.0.21,8.0)' apply false

buildSrc/src/main/groovy/multiloader-loader-forge.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repositories {
2121

2222
dependencies {
2323
implementation minecraft.dependency("net.minecraftforge:forge:${minecraft_version}-${forge_version}")
24-
annotationProcessor 'net.minecraftforge:eventbus-validator:7.0-beta.10'
24+
annotationProcessor 'net.minecraftforge:eventbus-validator:7.0.5'
2525
annotationProcessor 'org.spongepowered:mixin:0.8.7:processor'
2626

2727
testImplementation "junit:junit:4.12"

gradle.properties

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ group=org.cyclops.capabilityproxy
44
java_version=25
55

66
# Common
7-
minecraft_version=26.1.2
7+
minecraft_version=26.2
88
mod_name=CapabilityProxy
99
mod_author=rubensworks (aka kroeser)
1010
mod_id=capabilityproxy
@@ -14,27 +14,27 @@ issue_tracker_url=https://github.com/CyclopsMC/CapabilityProxy/issues
1414
display_url=https://www.curseforge.com/minecraft/mc-mods/capabilityproxy
1515
description=Access block capabilities from multiple sides.
1616
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44
17-
neo_form_version=26.1.2-1
17+
neo_form_version=26.2-1
1818
curseforge_project_id=266479
1919
modrinth_project_id=3mPgwv8n
2020

2121
# Fabric
22-
fabric_version=0.146.1+26.1.2
23-
fabric_loader_version=0.18.5
22+
fabric_version=0.152.2+26.2
23+
fabric_loader_version=0.19.3
2424
# Dependencies
25-
fabric_forgeconfigapiport_version=26.1.3
25+
fabric_forgeconfigapiport_version=26.2.0
2626
# https://maven.fabricmc.net/teamreborn/energy/
2727
fabric_teamrebornenergy_version=5.0.0
2828
# https://maven.fabricmc.net/TechReborn/
29-
fabric_techreborn_version=TechReborn-25.1:6.0.1
29+
fabric_techreborn_version=TechReborn-26.2:6.1.0
3030

3131
# NeoForge
32-
neoforge_version=26.1.2.22-beta
32+
neoforge_version=26.2.0.6-beta
3333
neoforge_loader_version_range=[4,)
3434
neoforge_update_json_url=https://raw.githubusercontent.com/CyclopsMC/Versions/master/neoforge_update/capabilityproxy.json
3535

3636
# Forge
37-
forge_version=64.0.4
37+
forge_version=65.0.0
3838
forge_loader_version_range=[2,)
3939
forge_update_json_url=https://raw.githubusercontent.com/CyclopsMC/Versions/master/forge_update/capabilityproxy.json
4040

@@ -44,4 +44,4 @@ org.gradle.daemon=false
4444
org.gradle.caching=true
4545

4646
# Common dependencies
47-
cyclopscore_version=1.29.5-1012
47+
cyclopscore_version=1.30.0-1038
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

loader-common/src/main/java/org/cyclops/capabilityproxy/gametest/GameTestsCommon.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import net.minecraft.network.chat.Component;
99
import net.minecraft.world.InteractionHand;
1010
import net.minecraft.world.InteractionResult;
11-
import net.minecraft.world.entity.EntityType;
11+
import net.minecraft.world.entity.EntityTypes;
1212
import net.minecraft.world.entity.player.Player;
1313
import net.minecraft.world.entity.vehicle.minecart.MinecartChest;
1414
import net.minecraft.world.item.ItemStack;
@@ -20,6 +20,7 @@
2020
import net.minecraft.world.level.block.entity.ChestBlockEntity;
2121
import net.minecraft.world.level.block.state.BlockState;
2222
import net.minecraft.world.phys.BlockHitResult;
23+
import net.minecraft.world.phys.Vec3;
2324
import org.cyclops.capabilityproxy.Reference;
2425
import org.cyclops.capabilityproxy.RegistryEntries;
2526
import org.cyclops.capabilityproxy.block.BlockCapabilityProxy;
@@ -194,7 +195,7 @@ public void testBlockProxyForwardGuiHopper(GameTestHelper helper) {
194195
helper.succeedIf(() -> {
195196
// Open screen of target
196197
BlockState blockState = helper.getBlockState(POS.offset(2, 2, 3));
197-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(2, 2, 3).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 3)), false));
198+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(2, 2, 3)), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 3)), false));
198199
helper.assertTrue(result.equals(InteractionResult.SUCCESS), Component.literal("Interaction failed"));
199200
});
200201
}
@@ -234,7 +235,7 @@ public void testBlockProxyForwardChainGuiHopper(GameTestHelper helper) {
234235
helper.succeedWhen(() -> {
235236
// Open screen of target
236237
BlockState blockState = helper.getBlockState(POS.offset(3, 5, 5));
237-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(3, 5, 5).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(3, 5, 5)), false));
238+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(3, 5, 5)), Direction.NORTH, helper.absolutePos(POS.offset(3, 5, 5)), false));
238239
helper.assertTrue(result.equals(InteractionResult.SUCCESS), Component.literal("Interaction failed"));
239240
});
240241
}
@@ -260,7 +261,7 @@ public void testBlockProxyCycleGui(GameTestHelper helper) {
260261
helper.succeedWhen(() -> {
261262
// Open screen of target
262263
BlockState blockState = helper.getBlockState(POS.offset(2, 2, 2));
263-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(2, 2, 2).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 2)), false));
264+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(2, 2, 2)), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 2)), false));
264265
helper.assertTrue(result.equals(InteractionResult.FAIL), Component.literal("Interaction did not fail"));
265266
});
266267
}
@@ -391,7 +392,7 @@ public void testBlockProxyRangedForwardGuiHopper(GameTestHelper helper) {
391392
helper.succeedIf(() -> {
392393
// Open screen of target
393394
BlockState blockState = helper.getBlockState(POS.offset(2, 2, 4));
394-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(2, 2, 4).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 4)), false));
395+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(2, 2, 4)), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 4)), false));
395396
helper.assertTrue(result.equals(InteractionResult.SUCCESS), Component.literal("Interaction failed"));
396397
});
397398
}
@@ -431,7 +432,7 @@ public void testBlockProxyRangedForwardChainGuiHopper(GameTestHelper helper) {
431432
helper.succeedWhen(() -> {
432433
// Open screen of target
433434
BlockState blockState = helper.getBlockState(POS.offset(3, 5, 6));
434-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(3, 5, 6).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(3, 5, 6)), false));
435+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(3, 5, 6)), Direction.NORTH, helper.absolutePos(POS.offset(3, 5, 6)), false));
435436
helper.assertTrue(result.equals(InteractionResult.SUCCESS), Component.literal("Interaction failed"));
436437
});
437438
}
@@ -457,7 +458,7 @@ public void testBlockProxyRangedCycleGui(GameTestHelper helper) {
457458
helper.succeedWhen(() -> {
458459
// Open screen of target
459460
BlockState blockState = helper.getBlockState(POS.offset(2, 2, 2));
460-
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(POS.offset(2, 2, 2).getBottomCenter(), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 2)), false));
461+
InteractionResult result = blockState.useWithoutItem(helper.getLevel(), player, new BlockHitResult(Vec3.atBottomCenterOf(POS.offset(2, 2, 2)), Direction.NORTH, helper.absolutePos(POS.offset(2, 2, 2)), false));
461462
helper.assertTrue(result.equals(InteractionResult.PASS) || result.equals(InteractionResult.FAIL), Component.literal("Interaction did not pass"));
462463
});
463464
}
@@ -633,7 +634,7 @@ public void testBlockProxyEntityFillChestMinecartFromHopper(GameTestHelper helpe
633634

634635
// Place chest minecart at target
635636
helper.setBlock(POS.offset(2, 0, 2), Blocks.RAIL.defaultBlockState());
636-
MinecartChest minecart = helper.spawn(EntityType.CHEST_MINECART, POS.offset(2, 0, 2));
637+
MinecartChest minecart = helper.spawn(EntityTypes.CHEST_MINECART, POS.offset(2, 0, 2));
637638

638639
// Make hopper target proxy
639640
helper.setBlock(POS.offset(2, 0, 4), Blocks.HOPPER

loader-fabric/src/main/java/org/cyclops/capabilityproxy/CapabilityProxyFabric.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected boolean hasDefaultCreativeModeTab() {
5656
@Override
5757
protected CreativeModeTab.Builder constructDefaultCreativeModeTab(CreativeModeTab.Builder builder) {
5858
return super.constructDefaultCreativeModeTab(builder)
59-
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY));
59+
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY.getHolder()));
6060
}
6161

6262
@Override

loader-fabric/src/main/java/org/cyclops/capabilityproxy/apilookup/EntityApiRegistrar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import net.fabricmc.fabric.impl.lookup.entity.EntityApiLookupImpl;
1313
import net.minecraft.core.Direction;
1414
import net.minecraft.resources.Identifier;
15-
import net.minecraft.world.entity.EntityType;
15+
import net.minecraft.world.entity.EntityTypes;
1616
import net.minecraft.world.level.block.entity.BlockEntityType;
1717
import org.cyclops.capabilityproxy.blockentity.BlockEntityCapabilityProxyFabricConfig;
1818
import org.cyclops.capabilityproxy.blockentity.BlockEntityEntityCapabilityProxyFabric;
@@ -40,7 +40,7 @@ public void initializeCapabilityRegistrationsIfNeeded(BlockEntityType<? extends
4040
if (BlockEntityCapabilityProxyFabricConfig.registerPlayerItemStorage) {
4141
EntityApiLookup<Storage<ItemVariant>, @Nullable Direction> SIDED =
4242
EntityApiLookup.get(Identifier.fromNamespaceAndPath("fabric", "sided_item_storage"), Storage.asClass(), Direction.class);
43-
SIDED.registerForType((entity, context) -> ContainerStorage.of(entity.getInventory(), context), EntityType.PLAYER);
43+
SIDED.registerForType((entity, context) -> ContainerStorage.of(entity.getInventory(), context), EntityTypes.PLAYER);
4444
}
4545

4646
Map<Identifier, EntityApiLookup<?, ?>> entityCapabilities = TypedApiHelpers.getTypedApiLookupsKeyed((Class<EntityApiLookup<?, ?>>) (Class) EntityApiLookupImpl.class);

loader-forge/src/main/java/org/cyclops/capabilityproxy/CapabilityProxyForge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected boolean hasDefaultCreativeModeTab() {
5252
@Override
5353
protected CreativeModeTab.Builder constructDefaultCreativeModeTab(CreativeModeTab.Builder builder) {
5454
return super.constructDefaultCreativeModeTab(builder)
55-
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY));
55+
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY.getHolder()));
5656
}
5757

5858
@Override

loader-neoforge/src/main/java/org/cyclops/capabilityproxy/CapabilityProxyNeoForge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected ICommonProxy constructCommonProxy() {
5151
@Override
5252
protected CreativeModeTab.Builder constructDefaultCreativeModeTab(CreativeModeTab.Builder builder) {
5353
return super.constructDefaultCreativeModeTab(builder)
54-
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY));
54+
.icon(() -> new ItemStack(RegistryEntries.ITEM_CAPABILITY_PROXY.getHolder()));
5555
}
5656

5757
@Override

0 commit comments

Comments
 (0)