From 0aba23f15fb66daaf7f26b6d6aa289a05197fd83 Mon Sep 17 00:00:00 2001 From: Foxy Date: Mon, 23 Dec 2024 23:14:15 +0100 Subject: [PATCH] Bump javadoc version --- .../java/ca/fxco/moreculling/api/block/MoreBlockCulling.java | 2 +- .../ca/fxco/moreculling/api/blockstate/MoreStateCulling.java | 2 +- .../moreculling/mixin/blockstates/Block_drawSideMixin.java | 2 +- .../src/main/java/ca/fxco/moreculling/utils/CullingUtils.java | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/ca/fxco/moreculling/api/block/MoreBlockCulling.java b/common/src/main/java/ca/fxco/moreculling/api/block/MoreBlockCulling.java index 5d0ac9a..86f6265 100644 --- a/common/src/main/java/ca/fxco/moreculling/api/block/MoreBlockCulling.java +++ b/common/src/main/java/ca/fxco/moreculling/api/block/MoreBlockCulling.java @@ -43,7 +43,7 @@ public interface MoreBlockCulling { * This is not used if blocks are opaque. * Allows you to pass the side to check against * - * @since 0.25.0 + * @since 1.0.3 */ default boolean moreculling$shouldAttemptToCull(BlockState state, @Nullable Direction side, BlockGetter level, BlockPos pos) { return false; diff --git a/common/src/main/java/ca/fxco/moreculling/api/blockstate/MoreStateCulling.java b/common/src/main/java/ca/fxco/moreculling/api/blockstate/MoreStateCulling.java index afa1122..99ccbf4 100644 --- a/common/src/main/java/ca/fxco/moreculling/api/blockstate/MoreStateCulling.java +++ b/common/src/main/java/ca/fxco/moreculling/api/blockstate/MoreStateCulling.java @@ -35,7 +35,7 @@ public interface MoreStateCulling { * By default, it returns true if the states model does not have translucency. * Allows you to pass the side to check against * - * @since 0.25.0 + * @since 1.0.3 */ boolean moreculling$shouldAttemptToCull(Direction side, BlockGetter getter, BlockPos pos); diff --git a/common/src/main/java/ca/fxco/moreculling/mixin/blockstates/Block_drawSideMixin.java b/common/src/main/java/ca/fxco/moreculling/mixin/blockstates/Block_drawSideMixin.java index 375df06..ca4676f 100644 --- a/common/src/main/java/ca/fxco/moreculling/mixin/blockstates/Block_drawSideMixin.java +++ b/common/src/main/java/ca/fxco/moreculling/mixin/blockstates/Block_drawSideMixin.java @@ -35,7 +35,7 @@ public class Block_drawSideMixin implements MoreBlockCulling { @Override public boolean moreculling$shouldAttemptToCull(BlockState state, Direction side, BlockGetter level, BlockPos pos) { BakedModel model = blockRenderManager.getBlockModel(state); - Services.PLATFORM.getQuads(model, state, side, CullingUtils.random, level, pos); + Services.PLATFORM.getQuads(model, state, side, CullingUtils.RANDOM, level, pos); return !((BakedOpacity) model).moreculling$hasTextureTranslucency(state, side); } diff --git a/common/src/main/java/ca/fxco/moreculling/utils/CullingUtils.java b/common/src/main/java/ca/fxco/moreculling/utils/CullingUtils.java index 0b943e6..274c23b 100644 --- a/common/src/main/java/ca/fxco/moreculling/utils/CullingUtils.java +++ b/common/src/main/java/ca/fxco/moreculling/utils/CullingUtils.java @@ -24,7 +24,7 @@ public class CullingUtils { - public static final RandomSource random = RandomSource.createNewThreadLocalInstance(); + public static final RandomSource RANDOM = RandomSource.createNewThreadLocalInstance(); /** * Replaces the default vanilla culling with a custom implementation @@ -148,7 +148,7 @@ public static Optional shouldDrawFaceRandom(BlockGetter view, BlockStat BlockPos sidePos, Direction side) { if (sideState.getBlock() instanceof LeavesBlock || (sideState.canOcclude() && sideState.isFaceSturdy(view, sidePos, side.getOpposite()))) { - if (random.nextIntBetweenInclusive(1, MoreCulling.CONFIG.leavesCullingAmount + 1) == 1) { + if (RANDOM.nextIntBetweenInclusive(1, MoreCulling.CONFIG.leavesCullingAmount + 1) == 1) { return Optional.of(false); } }