Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7938e84
Register MinecartSoundInstanceMixin so magnetic rails silence unridde…
digi2303 Aug 6, 2026
4d5076a
Remove SpriteResourceLoaderMixin, superseded by the armor_trims atlas…
digi2303 Aug 6, 2026
162bfbe
Fix isPathfindable overrides to match the 1.21 BlockBehaviour signature
digi2303 Aug 6, 2026
b921c5e
Restore custom eye heights through getDefaultDimensions after 1.21 re…
digi2303 Aug 6, 2026
05a9bf4
Restore the caramel cube's size-dependent hitbox and eye height
digi2303 Aug 6, 2026
72491fb
Fix getExpDrop signature so radrock uranium ore drops experience again
digi2303 Aug 6, 2026
152a587
Fix getCloneItemStack signature on fissure primal magma
digi2303 Aug 6, 2026
c99653a
Fix getUpdateTag signature so hologram projectors sync to the client
digi2303 Aug 6, 2026
0704d1e
Fix setupRotations overrides to take the 1.21 scale parameter
digi2303 Aug 6, 2026
0d05f80
Read bucketed entity data from BUCKET_ENTITY_DATA instead of CUSTOM_DATA
digi2303 Aug 6, 2026
90bf3dd
Read the deep one's swapped item back from the key it is saved under
digi2303 Aug 6, 2026
7ec500c
Return the soda bottle processor's own type from getType
digi2303 Aug 6, 2026
a3ef648
Clamp the lollipop palette index to the last valid palette
digi2303 Aug 6, 2026
435e3a4
Stop drawing the spelunkery table background twice per frame
digi2303 Aug 6, 2026
4fe2d9e
Drop the removed teleport flag from lerpTo so custom interpolation ap…
digi2303 Aug 6, 2026
a1d3053
Override getBaseExperienceReward so custom experience drops apply on …
digi2303 Aug 6, 2026
cb17172
Fix canPlaceLiquid and pickupBlock overrides to take the 1.21 player …
digi2303 Aug 6, 2026
16fae2b
Restore custom block entity render bounds through the renderer on 1.21
digi2303 Aug 6, 2026
ad4ac46
Take the packed colour int in renderToBuffer so baby model scaling ap…
digi2303 Aug 6, 2026
0ae0da5
Save the boundroid winch's head UUID under the key it is read from
digi2303 Aug 6, 2026
7271f3c
Take the packed colour int in HideableModelBoxWithChildren so hidden …
digi2303 Aug 6, 2026
931a9a2
Restore Alex's Caves decorated pot patterns on 1.21
digi2303 Aug 6, 2026
de55cb7
Remove leftover porting scaffolding from startup
digi2303 Aug 6, 2026
20af46f
Clamp the abyssal chasm biome check to the world floor instead of col…
digi2303 Aug 6, 2026
cf66054
Fix causeFallDamage overrides to take the damage source
digi2303 Aug 6, 2026
cb07247
Mark gradlew executable
digi2303 Aug 6, 2026
fed53e7
Seed the cave biome sampler at server start so biome lookups do not d…
digi2303 Aug 6, 2026
8babf0d
Stop scaling baby dinosaur models twice now that the renderer applies…
digi2303 Aug 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified gradlew
100644 → 100755
Empty file.
27 changes: 1 addition & 26 deletions src/main/java/com/github/alexmodguy/alexscaves/AlexsCaves.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public AlexsCaves(IEventBus modEventBus, ModContainer modContainer) {
ACLootTableRegistry.LOOT_FUNCTION_DEF_REG.register(modEventBus);
ACCreativeTabRegistry.DEF_REG.register(modEventBus);
ACDataComponentRegistry.init(modEventBus);
ACPotPatternRegistry.init(); // Pot patterns are now data-driven in 1.21
ACPotPatternRegistry.DEF_REG.register(modEventBus);
this.modEventBus = modEventBus; // Store for later use
PROXY.commonInit(modEventBus);
ACBiomeRegistry.init();
Expand Down Expand Up @@ -192,36 +192,11 @@ private void commonSetup(final FMLCommonSetupEvent event) {
ACEffectRegistry.setup();
ACBlockRegistry.setup();
ACItemRegistry.setup();
// ACPotPatternRegistry.expandVanillaDefinitions(); // Pot patterns are now data-driven in 1.21
ACBlockEntityRegistry.expandVanillaDefinitions();
// Debug: verify POI registration
verifyPoiRegistration();
});
readModIncompatibilities();
}

private void verifyPoiRegistration() {
try {
var attractingMagnets = com.github.alexmodguy.alexscaves.server.block.poi.ACPOIRegistry.ATTRACTING_MAGNETS.get();
var repellingMagnets = com.github.alexmodguy.alexscaves.server.block.poi.ACPOIRegistry.REPELLING_MAGNETS.get();
LOGGER.info("POI Verification - Attracting Magnets: {} states registered", attractingMagnets.matchingStates().size());
LOGGER.info("POI Verification - Repelling Magnets: {} states registered", repellingMagnets.matchingStates().size());

// Verify that PoiTypes.hasPoi returns true for our blocks
var scarletNode = com.github.alexmodguy.alexscaves.server.block.ACBlockRegistry.SCARLET_NEODYMIUM_NODE.get().defaultBlockState();
var azureNode = com.github.alexmodguy.alexscaves.server.block.ACBlockRegistry.AZURE_NEODYMIUM_NODE.get().defaultBlockState();
boolean scarletHasPoi = net.minecraft.world.entity.ai.village.poi.PoiTypes.hasPoi(scarletNode);
boolean azureHasPoi = net.minecraft.world.entity.ai.village.poi.PoiTypes.hasPoi(azureNode);
LOGGER.info("POI Verification - Scarlet Node hasPoi: {}, Azure Node hasPoi: {}", scarletHasPoi, azureHasPoi);

if (!scarletHasPoi || !azureHasPoi) {
LOGGER.error("POI registration failed! Neodymium blocks are not registered as POI types!");
}
} catch (Exception e) {
LOGGER.error("Failed to verify POI registration", e);
}
}

private void registerTicketControllers(RegisterTicketControllersEvent event) {
event.register(TICKET_CONTROLLER);
event.register(com.github.alexmodguy.alexscaves.server.entity.item.NuclearExplosionEntity.TICKET_CONTROLLER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ protected void init() {
}

public void render(GuiGraphics guiGraphics, int x, int y, float partialTick) {
this.renderBackground(guiGraphics, x, y, partialTick);
this.renderBg(guiGraphics, partialTick, x, y);
super.render(guiGraphics, x, y, partialTick);
this.renderMagnify(guiGraphics, partialTick);
this.renderTooltip(guiGraphics, x, y);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.alexmodguy.alexscaves.client.model;

import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.living.AtlatitanEntity;
import com.github.alexthe666.citadel.client.model.AdvancedModelBox;
import com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -107,16 +106,13 @@ public AtlatitanModel() {
this.updateDefaultPose();
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
int color = ColorUtil.packColor(red, green, blue, alpha);
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 2F;
head.setScale(f, f, f);
head.setShouldScaleChildren(true);
head.setRotationPoint(0.8F, 3.0F, -75.0F);
matrixStackIn.pushPose();
matrixStackIn.scale(0.15F, 0.15F, 0.15F);
matrixStackIn.translate(0.0D, 8.55F, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.alexmodguy.alexscaves.client.model;

import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.living.CandicornEntity;
import com.github.alexmodguy.alexscaves.server.misc.ACMath;
import com.github.alexthe666.citadel.animation.IAnimatedEntity;
Expand Down Expand Up @@ -323,8 +322,7 @@ private void poseBucking() {
animator.rotate(right_backLeg, (float) Math.toRadians(35), 0, 0);
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
int color = ColorUtil.packColor(red, green, blue, alpha);
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
this.horn.showModel = !this.young;
if (this.young) {
float f = 1.35F;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ public void animate(IAnimatedEntity entity) {
animator.resetKeyframe(5);
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
int color = ColorUtil.packColor(red, green, blue, alpha);
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Paste this class into your mod and generate all required imports


import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.living.RaycatEntity;
import com.github.alexthe666.citadel.client.model.AdvancedEntityModel;
import com.github.alexthe666.citadel.client.model.AdvancedModelBox;
Expand Down Expand Up @@ -133,7 +132,7 @@ public void setupAnim(RaycatEntity entity, float limbSwing, float limbSwingAmoun
this.faceTarget(netHeadYaw, headPitch, 1, head);
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
Expand All @@ -142,14 +141,14 @@ public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int
matrixStackIn.scale(0.5F, 0.5F, 0.5F);
matrixStackIn.translate(0.0D, 1.5D, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.alexmodguy.alexscaves.client.model;

import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.living.RelicheirusEntity;
import com.github.alexmodguy.alexscaves.server.misc.ACMath;
import com.github.alexthe666.citadel.animation.Animation;
Expand Down Expand Up @@ -261,23 +260,21 @@ public RelicheirusModel() {
animator = ModelAnimator.create();
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
head.setShouldScaleChildren(true);
matrixStackIn.pushPose();
matrixStackIn.scale(0.25F, 0.25F, 0.25F);
matrixStackIn.translate(0.0D, 4.5F, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Paste this class into your mod and generate all required imports


import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.item.DinosaurSpiritEntity;
import com.github.alexmodguy.alexscaves.server.entity.living.SubterranodonEntity;
import com.github.alexmodguy.alexscaves.server.misc.ACMath;
Expand Down Expand Up @@ -277,7 +276,7 @@ public Vec3 getLegPosition(boolean right, Vec3 offsetIn) {
return vec3;
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
Expand All @@ -286,14 +285,14 @@ public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int
matrixStackIn.scale(0.35F, 0.35F, 0.35F);
matrixStackIn.translate(0.0D, 2.75D, 0.125D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,21 @@ public TremorsaurusModel() {
animator = ModelAnimator.create();
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
head.setShouldScaleChildren(true);
matrixStackIn.pushPose();
matrixStackIn.scale(0.25F, 0.25F, 0.25F);
matrixStackIn.translate(0.0D, 4.5F, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.github.alexmodguy.alexscaves.client.model;

import com.github.alexmodguy.alexscaves.client.model.misc.HideableModelBoxWithChildren;
import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexmodguy.alexscaves.server.entity.living.TremorzillaEntity;
import com.github.alexmodguy.alexscaves.server.entity.util.TremorzillaLegSolver;
import com.github.alexmodguy.alexscaves.server.misc.ACMath;
Expand Down Expand Up @@ -264,23 +263,21 @@ public TremorzillaModel() {
animator = ModelAnimator.create();
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
head.setShouldScaleChildren(true);
matrixStackIn.pushPose();
matrixStackIn.scale(0.15F, 0.15F, 0.15F);
matrixStackIn.translate(0.0D, 8.55F, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, color);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public void setAlpha(float alpha) {
this.alpha = alpha;
}

public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alphaIn) {
public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, int color) {
int tintedColor = ColorUtil.packColor(ColorUtil.unpackRed(color), ColorUtil.unpackGreen(color), ColorUtil.unpackBlue(color), ColorUtil.unpackAlpha(color) * this.alpha);
if (this.young) {
float f = 1.5F;
head.setScale(f, f, f);
Expand All @@ -188,14 +189,14 @@ public void renderToBuffer(PoseStack matrixStackIn, VertexConsumer bufferIn, int
matrixStackIn.scale(0.5F, 0.5F, 0.5F);
matrixStackIn.translate(0.0D, 1.5D, 0D);
parts().forEach((p_228292_8_) -> {
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alphaIn * this.alpha));
p_228292_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, tintedColor);
});
matrixStackIn.popPose();
head.setScale(1, 1, 1);
} else {
matrixStackIn.pushPose();
parts().forEach((p_228290_8_) -> {
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, ColorUtil.packColor(red, green, blue, alphaIn * this.alpha));
p_228290_8_.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, tintedColor);
});
matrixStackIn.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.alexmodguy.alexscaves.client.model.misc;

import com.github.alexmodguy.alexscaves.client.render.ColorUtil;
import com.github.alexthe666.citadel.client.model.AdvancedEntityModel;
import com.github.alexthe666.citadel.client.model.AdvancedModelBox;
import com.github.alexthe666.citadel.client.model.basic.BasicModelPart;
Expand All @@ -24,9 +23,9 @@ public HideableModelBoxWithChildren(AdvancedEntityModel model, int textureOffset
}


public void render(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLightIn, int overlay, float r, float g, float b, float a) {
public void render(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLightIn, int overlay, int color) {
if (this.showModel) {
super.render(poseStack, vertexConsumer, packedLightIn, overlay, ColorUtil.packColor(r, g, b, a));
super.render(poseStack, vertexConsumer, packedLightIn, overlay, color);
} else if (!this.cubeList.isEmpty() || !this.childModels.isEmpty()) {
poseStack.pushPose();
this.translateAndRotate(poseStack);
Expand All @@ -36,7 +35,7 @@ public void render(PoseStack poseStack, VertexConsumer vertexConsumer, int packe
}
while (var9.hasNext()) {
BasicModelPart lvt_10_1_ = (BasicModelPart) var9.next();
lvt_10_1_.render(poseStack, vertexConsumer, packedLightIn, overlay, ColorUtil.packColor(r, g, b, a));
lvt_10_1_.render(poseStack, vertexConsumer, packedLightIn, overlay, color);
}
poseStack.popPose();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemDisplayContext;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.phys.AABB;

public class AbyssalAltarBlockRenderer<T extends AbyssalAltarBlockEntity> implements BlockEntityRenderer<T> {

Expand Down Expand Up @@ -92,4 +93,8 @@ protected int getModelCount(ItemStack stack) {
public int getViewDistance() {
return 128;
}

public AABB getRenderBoundingBox(T blockEntity) {
return blockEntity.getRenderBoundingBox();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import net.minecraft.client.renderer.blockentity.BlockEntityRenderer;
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider;
import net.minecraft.core.BlockPos;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;
import org.joml.Matrix3f;
import org.joml.Matrix4f;
Expand Down Expand Up @@ -129,4 +130,8 @@ private static void shineRightCornerVertex(VertexConsumer p_114224_, Matrix4f p_
public int getViewDistance() {
return 256;
}

public AABB getRenderBoundingBox(T blockEntity) {
return blockEntity.getRenderBoundingBox();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import net.minecraft.util.RandomSource;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.AABB;
import net.neoforged.neoforge.client.model.data.ModelData;
import org.joml.Matrix3f;
import org.joml.Matrix4f;
Expand Down Expand Up @@ -179,4 +180,8 @@ private static void shineRightCornerVertex(VertexConsumer vertexConsumer, Matrix
public int getViewDistance() {
return 128;
}

public AABB getRenderBoundingBox(T blockEntity) {
return blockEntity.getRenderBoundingBox();
}
}
Loading