From ed36d8a72063fab191c2742bc41a200110c45969 Mon Sep 17 00:00:00 2001 From: CammiePone Date: Sat, 9 Nov 2024 10:47:29 -0800 Subject: [PATCH] removed unused method --- .../sparkweave/api/client/render/LecternItemRenderer.java | 4 ---- .../testmod/client/renderers/DiamondLecternRenderer.java | 8 -------- 2 files changed, 12 deletions(-) diff --git a/Common/src/main/java/dev/upcraft/sparkweave/api/client/render/LecternItemRenderer.java b/Common/src/main/java/dev/upcraft/sparkweave/api/client/render/LecternItemRenderer.java index 41d53ee..39cb853 100644 --- a/Common/src/main/java/dev/upcraft/sparkweave/api/client/render/LecternItemRenderer.java +++ b/Common/src/main/java/dev/upcraft/sparkweave/api/client/render/LecternItemRenderer.java @@ -1,7 +1,6 @@ package dev.upcraft.sparkweave.api.client.render; import com.mojang.blaze3d.vertex.PoseStack; -import net.minecraft.client.model.Model; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider; import net.minecraft.world.item.ItemStack; @@ -22,9 +21,6 @@ public BlockEntityRendererProvider.Context blockEntityContext() { public abstract void renderBook(LecternBlockEntity lecternBlockEntity, BlockState blockState, ItemStack itemStack, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay); - @Nullable - public abstract Model getBookModel(); - @FunctionalInterface public interface Factory { @Nullable LecternItemRenderer create(BlockEntityRendererProvider.Context context); diff --git a/Common/src/testmod/java/dev/upcraft/sparkweave/testmod/client/renderers/DiamondLecternRenderer.java b/Common/src/testmod/java/dev/upcraft/sparkweave/testmod/client/renderers/DiamondLecternRenderer.java index 0163070..d758dc3 100644 --- a/Common/src/testmod/java/dev/upcraft/sparkweave/testmod/client/renderers/DiamondLecternRenderer.java +++ b/Common/src/testmod/java/dev/upcraft/sparkweave/testmod/client/renderers/DiamondLecternRenderer.java @@ -3,14 +3,12 @@ import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.math.Axis; import dev.upcraft.sparkweave.api.client.render.LecternItemRenderer; -import net.minecraft.client.model.Model; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider; import net.minecraft.world.item.ItemDisplayContext; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.block.entity.LecternBlockEntity; import net.minecraft.world.level.block.state.BlockState; -import org.jetbrains.annotations.Nullable; public class DiamondLecternRenderer extends LecternItemRenderer { public DiamondLecternRenderer(BlockEntityRendererProvider.Context context) { @@ -29,10 +27,4 @@ public void renderBook(LecternBlockEntity lecternBlockEntity, BlockState blockSt poseStack.popPose(); } - - @Nullable - @Override - public Model getBookModel() { - return null; - } }