Skip to content

Commit c70ce56

Browse files
authored
Merge pull request #4925 from rfresh2/1.21.11
1.21.11
2 parents 2d2c691 + 4a5ad80 commit c70ce56

38 files changed

+253
-298
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ allprojects {
4646
}
4747

4848
repositories {
49+
maven {
50+
url = "https://files.minecraftforge.net/maven/"
51+
}
4952
maven {
5053
name = 'spongepowered-repo'
5154
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,neoforge,forge,tweaker
3+
available_loaders=fabric,forge,tweaker
44

5-
mod_version=1.16.0
5+
mod_version=1.17.0
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
import baritone.api.command.manager.ICommandManager;
2424
import baritone.api.event.events.TabCompleteEvent;
2525
import baritone.api.utils.SettingsUtil;
26+
import net.minecraft.resources.Identifier;
27+
2628
import java.util.Comparator;
2729
import java.util.List;
2830
import java.util.Locale;
2931
import java.util.function.Function;
3032
import java.util.function.Predicate;
3133
import java.util.stream.Stream;
32-
import net.minecraft.resources.ResourceLocation;
3334

3435
/**
3536
* The {@link TabCompleteHelper} is a <b>single-use</b> object that helps you handle tab completion. It includes helper
@@ -206,13 +207,13 @@ public TabCompleteHelper filterPrefix(String prefix) {
206207
/**
207208
* Filter out any element that doesn't start with {@code prefix} and return this object for chaining
208209
* <p>
209-
* Assumes every element in this {@link TabCompleteHelper} is a {@link ResourceLocation}
210+
* Assumes every element in this {@link TabCompleteHelper} is a {@link Identifier}
210211
*
211212
* @param prefix The prefix to filter for
212213
* @return This {@link TabCompleteHelper}
213214
*/
214215
public TabCompleteHelper filterPrefixNamespaced(String prefix) {
215-
ResourceLocation loc = ResourceLocation.tryParse(prefix);
216+
Identifier loc = Identifier.tryParse(prefix);
216217
if (loc == null) {
217218
stream = Stream.empty();
218219
return this;

0 commit comments

Comments
 (0)