Skip to content

Commit f267e6d

Browse files
committed
Update everything to run on 1.19
1 parent 5e600af commit f267e6d

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '0.10-SNAPSHOT'
2+
id 'fabric-loom' version '0.12-SNAPSHOT'
33
id 'maven-publish'
44
}
55

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/versions.html
6-
minecraft_version=1.18.2
7-
yarn_mappings=1.18.2+build.3
8-
loader_version=0.14.5
6+
minecraft_version=1.19
7+
yarn_mappings=1.19+build.2
8+
loader_version=0.14.7
99

1010
# Mod Properties
1111
mod_version = 1.1.0
1212
maven_group = errorcraft.entitymodifiers
1313
archives_base_name = entitymodifiers
1414

1515
# Dependencies
16-
fabric_version=0.51.1+1.18.2
16+
fabric_version=0.55.3+1.19

src/main/java/errorcraft/entitymodifiers/EntityModifiers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import errorcraft.entitymodifiers.command.EntityCommand;
44
import errorcraft.entitymodifiers.command.SummonCommand;
55
import net.fabricmc.api.ModInitializer;
6-
import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback;
6+
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
77

88
public class EntityModifiers implements ModInitializer {
99
@Override
1010
public void onInitialize() {
11-
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> {
11+
CommandRegistrationCallback.EVENT.register((dispatcher, commandRegistry, environment) -> {
1212
EntityCommand.register(dispatcher);
1313
SummonCommand.register(dispatcher);
1414
});

src/main/java/errorcraft/entitymodifiers/command/EntityCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import net.minecraft.loot.context.LootContextTypes;
1212
import net.minecraft.server.command.ServerCommandSource;
1313
import net.minecraft.server.world.ServerWorld;
14-
import net.minecraft.text.TranslatableText;
14+
import net.minecraft.text.Text;
1515

1616
import java.util.Collection;
1717

@@ -41,9 +41,9 @@ private static int executeModify(ServerCommandSource source, Collection<? extend
4141
}
4242

4343
if (targets.size() == 1) {
44-
source.sendFeedback(new TranslatableText("commands.entity.modify.success.single", targets.iterator().next().getDisplayName()), true);
44+
source.sendFeedback(Text.translatable("commands.entity.modify.success.single", targets.iterator().next().getDisplayName()), true);
4545
} else {
46-
source.sendFeedback(new TranslatableText("commands.entity.modify.success.multiple", targets.size()), true);
46+
source.sendFeedback(Text.translatable("commands.entity.modify.success.multiple", targets.size()), true);
4747
}
4848

4949
return targets.size();

src/main/java/errorcraft/entitymodifiers/command/SummonCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import net.minecraft.loot.context.LootContextTypes;
1515
import net.minecraft.server.command.ServerCommandSource;
1616
import net.minecraft.server.world.ServerWorld;
17-
import net.minecraft.text.TranslatableText;
17+
import net.minecraft.text.Text;
1818
import net.minecraft.util.Identifier;
1919
import net.minecraft.util.math.BlockPos;
2020
import net.minecraft.util.math.Vec3d;
@@ -57,7 +57,7 @@ private static int summonWithModifier(ServerCommandSource source, Identifier ent
5757
throw SummonCommandAccessor.getFailedUUIDException().create();
5858
}
5959

60-
source.sendFeedback(new TranslatableText("commands.summon.success", actualEntity.getDisplayName()), true);
60+
source.sendFeedback(Text.translatable("commands.summon.success", actualEntity.getDisplayName()), true);
6161
return 1;
6262
}
6363
}

src/main/java/errorcraft/entitymodifiers/util/CommandUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
import net.minecraft.command.CommandSource;
1111
import net.minecraft.command.argument.IdentifierArgumentType;
1212
import net.minecraft.server.command.ServerCommandSource;
13-
import net.minecraft.text.TranslatableText;
13+
import net.minecraft.text.Text;
1414
import net.minecraft.util.Identifier;
1515

1616
public class CommandUtils {
17-
private static final DynamicCommandExceptionType UNKNOWN_ENTITY_MODIFIER = new DynamicCommandExceptionType(object -> new TranslatableText("entity_modifier.unknown", object));
17+
private static final DynamicCommandExceptionType UNKNOWN_ENTITY_MODIFIER = new DynamicCommandExceptionType(object -> Text.translatable("entity_modifier.unknown", object));
1818
public static final SuggestionProvider<ServerCommandSource> ENTITY_MODIFIER_SUGGESTION_PROVIDER = (context, builder) -> {
1919
MinecraftServerExtenderAccess serverExtenderAccess = (MinecraftServerExtenderAccess)(context.getSource().getServer());
2020
EntityModifierManager entityModifierManager = serverExtenderAccess.getEntityModifierManager();

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"depends": {
3131
"fabricloader": ">=0.12.5",
3232
"fabric": "*",
33-
"minecraft": "1.18.x",
33+
"minecraft": "~1.19",
3434
"java": ">=17"
3535
},
3636
"suggests": {

0 commit comments

Comments
 (0)