integration包

This commit is contained in:
GaLicn 2025-09-06 15:05:09 +08:00
parent a5a3d340c1
commit a8bf4023f7
4 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ public class EPlusCraftingCubeModelProvider
private static Material texture(String namespace, String name) {
var mat = new Material(TextureAtlas.LOCATION_BLOCKS,
new ResourceLocation(namespace, "block/crafting/" + name));
ResourceLocation.fromNamespaceAndPath(namespace, "block/crafting/" + name));
MATERIALS.add(mat);
return mat;
}

View File

@ -66,7 +66,7 @@ public enum WirelessTransceiverJadePluginComponents implements IBlockComponentPr
private final ResourceLocation uid;
WirelessTransceiverJadePluginComponents(String path) {
this.uid = new ResourceLocation("extendedae_plus", path);
this.uid = ResourceLocation.fromNamespaceAndPath("extendedae_plus", path);
}
@Override

View File

@ -14,7 +14,7 @@ import snownee.jade.api.IServerDataProvider;
public enum WirelessTransceiverProvider implements IServerDataProvider<BlockAccessor> {
INSTANCE;
private static final ResourceLocation UID = new ResourceLocation("extendedae_plus", "wireless_transceiver_info");
private static final ResourceLocation UID = ResourceLocation.fromNamespaceAndPath("extendedae_plus", "wireless_transceiver_info");
// 此类仅用于同步服务端数据不再包含客户端选项键
@Override

View File

@ -8,7 +8,7 @@ import net.minecraft.resources.ResourceLocation;
@JeiPlugin
public class ExtendedAEJeiPlugin implements IModPlugin {
private static final ResourceLocation UID = new ResourceLocation(ExtendedAEPlus.MODID, "jei_plugin");
private static final ResourceLocation UID = ResourceLocation.fromNamespaceAndPath(ExtendedAEPlus.MODID, "jei_plugin");
@Override
public ResourceLocation getPluginUid() {