Skip to content

Commit

Permalink
Update mod to Minecraft 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 authored and Gegy committed Dec 10, 2022
1 parent c2871ad commit 2d49c7e
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.0.+'
id "com.modrinth.minotaur" version "2.+"
}
import com.modrinth.minotaur.TaskModrinthUpload
Expand All @@ -24,10 +24,10 @@ dependencies {

modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation include('xyz.nucleoid:stimuli:0.4.1+1.19.1')
modImplementation include('xyz.nucleoid:stimuli:0.4.1+1.19.3')

modCompileOnly "dev.gegy:player-roles-api:1.6.0"
modCompileOnly "me.lucko:fabric-permissions-api:0.1-SNAPSHOT"
modCompileOnly "dev.gegy:player-roles-api:1.6.2"
modCompileOnly "me.lucko:fabric-permissions-api:0.2-SNAPSHOT"
}

processResources {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

minecraft_version=1.19.1
yarn_mappings=1.19.1+build.3
loader_version=0.14.8
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.2
loader_version=0.14.11

#Dependencies
fabric_version=0.58.5+1.19.1
fabric_version=0.68.1+1.19.3

# Mod Properties
mod_version=0.3.4
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xyz/nucleoid/leukocyte/Leukocyte.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtList;
import net.minecraft.nbt.NbtOps;
import net.minecraft.registry.RegistryKey;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.PersistentState;
import net.minecraft.world.World;
import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.fastutil.objects.Reference2ObjectMaps;
import it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.registry.RegistryKey;
import net.minecraft.world.World;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/xyz/nucleoid/leukocyte/shape/BoxShape.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.text.Text;
import net.minecraft.text.MutableText;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.World;
import xyz.nucleoid.stimuli.filter.EventFilter;

public final class BoxShape implements ProtectionShape {
public static final Codec<BoxShape> CODEC = RecordCodecBuilder.create(instance -> {
return instance.group(
Identifier.CODEC.xmap(id -> RegistryKey.of(Registry.WORLD_KEY, id), RegistryKey::getValue).fieldOf("dimension").forGetter(scope -> scope.dimension),
Identifier.CODEC.xmap(id -> RegistryKey.of(RegistryKeys.WORLD, id), RegistryKey::getValue).fieldOf("dimension").forGetter(scope -> scope.dimension),
BlockPos.CODEC.fieldOf("min").forGetter(scope -> scope.min),
BlockPos.CODEC.fieldOf("max").forGetter(scope -> scope.max)
).apply(instance, BoxShape::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.text.Text;
import net.minecraft.text.MutableText;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.World;
import xyz.nucleoid.stimuli.filter.EventFilter;

public final class DimensionShape implements ProtectionShape {
public static final Codec<DimensionShape> CODEC = RecordCodecBuilder.create(instance -> {
return instance.group(
Identifier.CODEC.xmap(id -> RegistryKey.of(Registry.WORLD_KEY, id), RegistryKey::getValue).fieldOf("dimension").forGetter(scope -> scope.dimension)
Identifier.CODEC.xmap(id -> RegistryKey.of(RegistryKeys.WORLD, id), RegistryKey::getValue).fieldOf("dimension").forGetter(scope -> scope.dimension)
).apply(instance, DimensionShape::new);
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package xyz.nucleoid.leukocyte.shape;

import com.mojang.serialization.Codec;
import net.minecraft.registry.RegistryKey;
import net.minecraft.text.MutableText;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.World;
import xyz.nucleoid.leukocyte.util.StringRegistry;
import xyz.nucleoid.stimuli.filter.EventFilter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"depends": {
"fabricloader": ">=0.12",
"fabric": "*",
"minecraft": ">=1.18",
"minecraft": ">=1.19.3",
"stimuli": "0.4.x",
"java": ">=17"
}
Expand Down

0 comments on commit 2d49c7e

Please sign in to comment.