Skip to content

Commit 6200f26

Browse files
committed
updated to 1.21.11 based on PR cabaletta#4925 by 'refres2'
1 parent 9f2aab9 commit 6200f26

38 files changed

+251
-299
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ allprojects {
4848
}
4949

5050
repositories {
51+
maven {
52+
url = "https://files.minecraftforge.net/maven/"
53+
}
5154
maven {
5255
name = 'spongepowered-repo'
5356
url = 'https://repo.spongepowered.org/repository/maven-public/'

fabric/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"depends": {
2727
"fabricloader": ">=0.14.22",
28-
"minecraft": ["1.21.9", "1.21.10"]
28+
"minecraft": ["1.21.11"]
2929
},
3030
"custom": {
3131
"modmenu": {

forge/src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ A Minecraft pathfinder bot.
3535
modId="minecraft"
3636
mandatory=true
3737
# This version range declares a minimum of the current minecraft version up to but not including the next major version
38-
versionRange="[1.21.9, 1.21.10]"
38+
versionRange="[1.21.11]"
3939
ordering="NONE"
4040
side="BOTH"

gradle.properties

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
org.gradle.jvmargs=-Xmx4G
22

3-
available_loaders=fabric
3+
available_loaders=fabric,fabric
44

5-
mod_version=1.21.10-SNAPSHOT
5+
mod_version=1.21.11-SNAPSHOT
66
maven_group=baritone
77
archives_base_name=baritone
88

99
java_version=21
1010

11-
minecraft_version=1.21.10
11+
minecraft_version=1.21.11
1212

13-
forge_version=60.0.0
13+
forge_version=61.0.0
1414

15-
neoforge_version=1-beta
15+
neoforge_version=0-beta
1616

17-
fabric_version=0.17.2
17+
fabric_version=0.18.1
1818

1919
nether_pathfinder_version=1.4.1
2020

2121
// These dependencies are used for common and tweaker
2222
// while mod loaders usually ship their own version
23-
mixin_version=0.8.5
23+
mixin_version=0.8.7
2424
asm_version=9.7

neoforge/src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A Minecraft pathfinder bot.
3535
modId="minecraft"
3636
type="required"
3737
# This version range declares a minimum of the current minecraft version up to but not including the next major version
38-
versionRange="[1.21.9, 1.21.10]"
38+
versionRange="[1.21.11]"
3939
ordering="NONE"
4040
side="BOTH"
4141

src/api/java/baritone/api/command/datatypes/BlockById.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import baritone.api.command.exception.CommandException;
2121
import baritone.api.command.helpers.TabCompleteHelper;
2222
import net.minecraft.core.registries.BuiltInRegistries;
23-
import net.minecraft.resources.ResourceLocation;
23+
import net.minecraft.resources.Identifier;
2424
import net.minecraft.world.level.block.Block;
2525

2626
import java.util.stream.Stream;
@@ -30,7 +30,7 @@ public enum BlockById implements IDatatypeFor<Block> {
3030

3131
@Override
3232
public Block get(IDatatypeContext ctx) throws CommandException {
33-
ResourceLocation id = ResourceLocation.parse(ctx.getConsumer().getString());
33+
Identifier id = Identifier.parse(ctx.getConsumer().getString());
3434
Block block;
3535
if ((block = BuiltInRegistries.BLOCK.getOptional(id).orElse(null)) == null) {
3636
throw new IllegalArgumentException("no block found by that id");

src/api/java/baritone/api/command/datatypes/EntityClassById.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import baritone.api.command.exception.CommandException;
2121
import baritone.api.command.helpers.TabCompleteHelper;
2222
import net.minecraft.core.registries.BuiltInRegistries;
23-
import net.minecraft.resources.ResourceLocation;
23+
import net.minecraft.resources.Identifier;
2424
import net.minecraft.world.entity.EntityType;
2525

2626
import java.util.stream.Stream;
@@ -30,7 +30,7 @@ public enum EntityClassById implements IDatatypeFor<EntityType> {
3030

3131
@Override
3232
public EntityType get(IDatatypeContext ctx) throws CommandException {
33-
ResourceLocation id = ResourceLocation.parse(ctx.getConsumer().getString());
33+
Identifier id = Identifier.parse(ctx.getConsumer().getString());
3434
EntityType entity;
3535
if ((entity = BuiltInRegistries.ENTITY_TYPE.getOptional(id).orElse(null)) == null) {
3636
throw new IllegalArgumentException("no entity found by that id");

src/api/java/baritone/api/command/datatypes/ForBlockOptionalMeta.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import baritone.api.command.helpers.TabCompleteHelper;
2222
import baritone.api.utils.BlockOptionalMeta;
2323
import net.minecraft.core.registries.BuiltInRegistries;
24-
import net.minecraft.resources.ResourceLocation;
24+
import net.minecraft.resources.Identifier;
2525
import net.minecraft.world.level.block.Block;
2626
import net.minecraft.world.level.block.state.properties.Property;
2727

@@ -77,7 +77,7 @@ public Stream<String> tabComplete(IDatatypeContext ctx) throws CommandException
7777
properties = parts[1];
7878
}
7979

80-
Block block = BuiltInRegistries.BLOCK.getOptional(ResourceLocation.parse(blockId)).orElse(null);
80+
Block block = BuiltInRegistries.BLOCK.getOptional(Identifier.parse(blockId)).orElse(null);
8181
if (block == null) {
8282
// This block doesn't exist so there's no properties to complete.
8383
return Stream.empty();

src/api/java/baritone/api/command/datatypes/ItemById.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import baritone.api.command.exception.CommandException;
2121
import baritone.api.command.helpers.TabCompleteHelper;
2222
import net.minecraft.core.registries.BuiltInRegistries;
23-
import net.minecraft.resources.ResourceLocation;
23+
import net.minecraft.resources.Identifier;
2424
import net.minecraft.world.item.Item;
2525

2626
import java.util.stream.Stream;
@@ -30,7 +30,7 @@ public enum ItemById implements IDatatypeFor<Item> {
3030

3131
@Override
3232
public Item get(IDatatypeContext ctx) throws CommandException {
33-
ResourceLocation id = ResourceLocation.parse(ctx.getConsumer().getString());
33+
Identifier id = Identifier.parse(ctx.getConsumer().getString());
3434
Item item;
3535
if ((item = BuiltInRegistries.ITEM.getOptional(id).orElse(null)) == null) {
3636
throw new IllegalArgumentException("No item found by that id");
@@ -44,7 +44,7 @@ public Stream<String> tabComplete(IDatatypeContext ctx) throws CommandException
4444
.append(
4545
BuiltInRegistries.BLOCK.keySet()
4646
.stream()
47-
.map(ResourceLocation::toString)
47+
.map(Identifier::toString)
4848
)
4949
.filterPrefixNamespaced(ctx.getConsumer().getString())
5050
.sortAlphabetically()

src/api/java/baritone/api/command/helpers/TabCompleteHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import java.util.function.Function;
3030
import java.util.function.Predicate;
3131
import java.util.stream.Stream;
32-
import net.minecraft.resources.ResourceLocation;
32+
import net.minecraft.resources.Identifier;
3333

3434
/**
3535
* The {@link TabCompleteHelper} is a <b>single-use</b> object that helps you handle tab completion. It includes helper
@@ -206,13 +206,13 @@ public TabCompleteHelper filterPrefix(String prefix) {
206206
/**
207207
* Filter out any element that doesn't start with {@code prefix} and return this object for chaining
208208
* <p>
209-
* Assumes every element in this {@link TabCompleteHelper} is a {@link ResourceLocation}
209+
* Assumes every element in this {@link TabCompleteHelper} is a {@link Identifier}
210210
*
211211
* @param prefix The prefix to filter for
212212
* @return This {@link TabCompleteHelper}
213213
*/
214214
public TabCompleteHelper filterPrefixNamespaced(String prefix) {
215-
ResourceLocation loc = ResourceLocation.tryParse(prefix);
215+
Identifier loc = Identifier.tryParse(prefix);
216216
if (loc == null) {
217217
stream = Stream.empty();
218218
return this;

0 commit comments

Comments
 (0)