Skip to content

Commit

Permalink
update to 1.20.4 and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
woodiertexas committed Apr 2, 2024
1 parent cd28469 commit ce167c5
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 22 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ dependencies {

modImplementation libs.quilted.fabric.api

modImplementation include("maven.modrinth:static-data:1.0.1+1.20")
modImplementation include("maven.modrinth:suspicious-shapes:1.0.4+1.20.1")
modImplementation include("maven.modrinth:static-data:1.1.0+1.20.4")
modImplementation include("maven.modrinth:suspicious-shapes:1.0.5+1.20.4")
}

processResources {
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[versions]
# The latest versions are available at https://lambdaurora.dev/tools/import_quilt.html
minecraft = "1.20.1"
quilt_mappings = "1.20.1+build.23"
quilt_loader = "0.20.1"
quilted_fabric_api = "7.1.2+0.87.0-1.20.1"
minecraft = "1.20.4"
quilt_mappings = "1.20.4+build.3"
quilt_loader = "0.24.0"
quilted_fabric_api = "9.0.0-alpha.5+0.96.11-1.20.4"

[libraries]
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
Expand All @@ -12,5 +12,5 @@ quilt_loader = { module = "org.quiltmc:quilt-loader", version.ref = "quilt_loade
quilted_fabric_api = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api", version.ref = "quilted_fabric_api" }

[plugins]
quilt_loom = { id = "org.quiltmc.loom", version = "1.0.+" }
quilt_loom = { id = "org.quiltmc.loom", version = "1.6.+" }
minotaur = { id = "com.modrinth.minotaur", version = "2.+" }
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import org.quiltmc.loader.api.QuiltLoader;
import org.quiltmc.loader.api.entrypoint.EntrypointContainer;
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
import org.quiltmc.qsl.resource.loader.api.InMemoryResourcePack;
import org.quiltmc.qsl.resource.loader.api.InMemoryPack;
import org.quiltmc.qsl.resource.loader.api.ResourceLoader;
import org.quiltmc.qsl.resource.loader.api.ResourcePackRegistrationContext;
import org.quiltmc.qsl.resource.loader.api.PackRegistrationContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -36,7 +36,7 @@
import gay.debuggy.staticdata.api.StaticData;
import gay.debuggy.staticdata.api.StaticDataItem;

public class ArchitectureExtensions implements ModInitializer, ResourcePackRegistrationContext.Callback {
public class ArchitectureExtensions implements ModInitializer, PackRegistrationContext.Callback {
public static final Logger LOGGER = LoggerFactory.getLogger("Architecture Extensions");

// This should probably be fine being public and mutable
Expand All @@ -48,7 +48,7 @@ public class ArchitectureExtensions implements ModInitializer, ResourcePackRegis
public static final BlockCreationCallback CALLBACK_ADD_TO_ITEM_GROUP = (group, blockType, baseBlock, derivedBlock) ->
ItemGroupUtil.pull(ArchitectureExtensions.ITEM_GROUP, blockType, baseBlock, derivedBlock.asItem());

public static final InMemoryResourcePack RESOURCE_PACK = new InMemoryResourcePack.Named("Architecture Extensions");
public static final InMemoryPack RESOURCE_PACK = new InMemoryPack.Named("Architecture Extensions");

@Override
public void onInitialize(ModContainer mod) {
Expand Down Expand Up @@ -101,11 +101,11 @@ public void onInitialize(ModContainer mod) {

ItemGroupUtil.push();

ResourceLoader.get(ResourceType.SERVER_DATA).getRegisterDefaultResourcePackEvent().register(this);
ResourceLoader.get(ResourceType.SERVER_DATA).getRegisterDefaultPackEvent().register(this);
}

@Override
public void onRegisterPack(@NotNull ResourcePackRegistrationContext context) {
public void onRegisterPack(@NotNull PackRegistrationContext context) {
DataGeneration.generate(ResourceType.SERVER_DATA);
context.addResourcePack(RESOURCE_PACK);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ private Text getBaseTranslationKey() {

//This hover never actually displays since the tooltip is already a hover.
//But this keeps the Null tradition alive and prevents the tooltip from becoming gigantic.
/*
return Text.literal("Missing")
.styled(it -> it.withHoverEvent(
HoverEvent.Action.SHOW_TEXT.buildHoverEvent(Text.translatable(MISSING_LOCALIZATION_KEY, Text.literal(ideal)))
)
.withItalic(true)
.withColor(TextColor.fromFormatting(Formatting.GRAY)));
*/

return Text.literal("NULL");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -66,4 +67,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends RodBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -70,4 +71,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.AbstractLichenBlock;
import net.minecraft.block.Block;
Expand Down Expand Up @@ -65,7 +66,12 @@ public BlockState getStateForNeighborUpdate(BlockState state, Direction directio

return state;
}


@Override
protected MapCodec<? extends AbstractLichenBlock> getCodec() {
return null;
}

@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
super.appendProperties(builder);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -86,4 +87,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -84,4 +85,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.HorizontalFacingBlock;
Expand Down Expand Up @@ -84,4 +85,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -73,4 +74,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.debuggyteam.architecture_extensions.blocks;

import com.mojang.serialization.MapCodec;
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
Expand Down Expand Up @@ -93,4 +94,9 @@ public TypedGroupedBlock getTypedGroupedBlock() {
public MutableText getName() {
return getServerTranslation();
}

@Override
protected MapCodec<? extends HorizontalFacingBlock> getCodec() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import org.quiltmc.qsl.base.api.entrypoint.client.ClientModInitializer;
import org.quiltmc.qsl.block.extensions.api.client.BlockRenderLayerMap;
import org.quiltmc.qsl.resource.loader.api.ResourceLoader;
import org.quiltmc.qsl.resource.loader.api.ResourcePackRegistrationContext;
import org.quiltmc.qsl.resource.loader.api.PackRegistrationContext;

public class ArchitectureExtensionsClient implements ClientModInitializer, ResourcePackRegistrationContext.Callback {
public class ArchitectureExtensionsClient implements ClientModInitializer, PackRegistrationContext.Callback {
@Override
public void onInitializeClient(ModContainer mod) {
DataGeneration.BLOCKS.forEach(block -> {
Expand All @@ -25,11 +25,11 @@ public void onInitializeClient(ModContainer mod) {
}
});

ResourceLoader.get(ResourceType.CLIENT_RESOURCES).getRegisterDefaultResourcePackEvent().register(this);
ResourceLoader.get(ResourceType.CLIENT_RESOURCES).getRegisterDefaultPackEvent().register(this);
}

@Override
public void onRegisterPack(@NotNull ResourcePackRegistrationContext context) {
public void onRegisterPack(@NotNull PackRegistrationContext context) {
DataGeneration.generate(ResourceType.CLIENT_RESOURCES);
context.addResourcePack(ArchitectureExtensions.RESOURCE_PACK);
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@
"depends": [
{
"id": "quilt_loader",
"versions": ">=0.19.0"
"versions": ">=0.24.0"
},
{
"id": "quilted_fabric_api",
"versions": ">=7.0.1+0.83.0-1.20"
},
{
"id": "minecraft",
"versions": ">=1.20 <1.21"
"versions": ">=1.20.4"
},
{
"id": "staticdata",
"versions": ">=1.0.1+1.20"
"versions": ">=1.1.0+1.20.4"
},
{
"id": "suspicious_shapes",
"versions": ">=1.0.4+1.20.1"
"versions": ">=1.0.5+1.20.4"
}
]
},
Expand Down

0 comments on commit ce167c5

Please sign in to comment.