diff --git a/src/main/java/org/betterx/betterend/blocks/BuddingSmaragdantCrystalBlock.java b/src/main/java/org/betterx/betterend/blocks/BuddingSmaragdantCrystalBlock.java index 64ccbb90..691e98f7 100644 --- a/src/main/java/org/betterx/betterend/blocks/BuddingSmaragdantCrystalBlock.java +++ b/src/main/java/org/betterx/betterend/blocks/BuddingSmaragdantCrystalBlock.java @@ -32,7 +32,7 @@ public class BuddingSmaragdantCrystalBlock extends LitPillarBlock implements Beh .randomTicks() .pushReaction(PushReaction.DESTROY)); } - + @Override public List getDrops(BlockState state, LootParams.Builder builder) { return Collections.emptyList(); diff --git a/src/main/java/org/betterx/betterend/blocks/EndstoneDustBlock.java b/src/main/java/org/betterx/betterend/blocks/EndstoneDustBlock.java index 69722c82..ab354614 100644 --- a/src/main/java/org/betterx/betterend/blocks/EndstoneDustBlock.java +++ b/src/main/java/org/betterx/betterend/blocks/EndstoneDustBlock.java @@ -35,7 +35,7 @@ public class EndstoneDustBlock extends FallingBlock implements TagProvider, Beha protected MapCodec codec() { return CODEC; } - + private static final int COLOR = ColorUtil.color(226, 239, 168); public EndstoneDustBlock() { diff --git a/src/main/java/org/betterx/betterend/client/BetterEndClient.java b/src/main/java/org/betterx/betterend/client/BetterEndClient.java index 2602ebf3..229118e8 100644 --- a/src/main/java/org/betterx/betterend/client/BetterEndClient.java +++ b/src/main/java/org/betterx/betterend/client/BetterEndClient.java @@ -1,6 +1,5 @@ package org.betterx.betterend.client; -import org.betterx.betterend.BetterEnd; import org.betterx.betterend.client.render.BetterEndSkyRenderer; import org.betterx.betterend.events.ItemTooltipCallback; import org.betterx.betterend.interfaces.MultiModelItem; diff --git a/src/main/java/org/betterx/betterend/entity/model/SilkMothEntityModel.java b/src/main/java/org/betterx/betterend/entity/model/SilkMothEntityModel.java index f853cb04..a6b6438b 100644 --- a/src/main/java/org/betterx/betterend/entity/model/SilkMothEntityModel.java +++ b/src/main/java/org/betterx/betterend/entity/model/SilkMothEntityModel.java @@ -1,6 +1,5 @@ package org.betterx.betterend.entity.model; -import org.betterx.betterend.BetterEnd; import org.betterx.betterend.entity.SilkMothEntity; import com.mojang.blaze3d.vertex.PoseStack; diff --git a/src/main/java/org/betterx/betterend/mixin/common/ServerPlayerMixin.java b/src/main/java/org/betterx/betterend/mixin/common/ServerPlayerMixin.java index bacaa60a..1dbfb58d 100644 --- a/src/main/java/org/betterx/betterend/mixin/common/ServerPlayerMixin.java +++ b/src/main/java/org/betterx/betterend/mixin/common/ServerPlayerMixin.java @@ -23,7 +23,7 @@ public abstract class ServerPlayerMixin extends Player { public ServerPlayerMixin(Level level, BlockPos blockPos, float f, GameProfile gameProfile) { super(level, blockPos, f, gameProfile); } - + @Inject(method = "createEndPlatform", at = @At("HEAD"), cancellable = true) private void be_createEndSpawnPlatform(ServerLevel world, BlockPos centerPos, CallbackInfo info) { if (!GeneratorOptions.generateObsidianPlatform()) { diff --git a/src/main/java/org/betterx/betterend/registry/EndProcessors.java b/src/main/java/org/betterx/betterend/registry/EndProcessors.java index 66077575..1a2c8247 100644 --- a/src/main/java/org/betterx/betterend/registry/EndProcessors.java +++ b/src/main/java/org/betterx/betterend/registry/EndProcessors.java @@ -16,7 +16,7 @@ public class EndProcessors { public static final ResourceKey END_STREET = ProcessorHelper.createKey(BetterEnd.makeID("end_street")); - + public static final ResourceKey CRYING_10_PERCENT = ProcessorHelper.createKey(BetterEnd.makeID("crying_10_percent")); } diff --git a/src/main/java/org/betterx/betterend/world/features/terrain/SmaragdantCrystalFeature.java b/src/main/java/org/betterx/betterend/world/features/terrain/SmaragdantCrystalFeature.java index ed3170d7..dd9dd988 100644 --- a/src/main/java/org/betterx/betterend/world/features/terrain/SmaragdantCrystalFeature.java +++ b/src/main/java/org/betterx/betterend/world/features/terrain/SmaragdantCrystalFeature.java @@ -10,13 +10,13 @@ import org.betterx.worlds.together.tag.v3.CommonBlockTags; import net.minecraft.core.BlockPos; import net.minecraft.core.BlockPos.MutableBlockPos; +import net.minecraft.core.Direction; import net.minecraft.util.RandomSource; import net.minecraft.world.level.WorldGenLevel; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.properties.BlockStateProperties; import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext; import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration; -import net.minecraft.core.Direction; import net.minecraft.world.level.material.Fluids; public class SmaragdantCrystalFeature extends DefaultFeature { @@ -56,10 +56,17 @@ public class SmaragdantCrystalFeature extends DefaultFeature { BlockState sideState = world.getBlockState(sidePos); if (BuddingSmaragdantCrystalBlock.canShardGrowAtState(sideState)) { if (random.nextBoolean()) { - BlockState attachedShard = EndBlocks.SMARAGDANT_CRYSTAL_SHARD.defaultBlockState() - .setValue(SmaragdantCrystalShardBlock.WATERLOGGED, - sideState.getFluidState().getType() == Fluids.WATER) - .setValue(SmaragdantCrystalShardBlock.FACING, k); + BlockState attachedShard = EndBlocks.SMARAGDANT_CRYSTAL_SHARD + .defaultBlockState() + .setValue( + SmaragdantCrystalShardBlock.WATERLOGGED, + sideState.getFluidState() + .getType() == Fluids.WATER + ) + .setValue( + SmaragdantCrystalShardBlock.FACING, + k + ); BlocksHelper.setWithoutUpdate(world, sidePos, attachedShard); } } diff --git a/src/main/java/org/betterx/betterend/world/features/terrain/StalactiteFeature.java b/src/main/java/org/betterx/betterend/world/features/terrain/StalactiteFeature.java index 45f9471f..3d63842c 100644 --- a/src/main/java/org/betterx/betterend/world/features/terrain/StalactiteFeature.java +++ b/src/main/java/org/betterx/betterend/world/features/terrain/StalactiteFeature.java @@ -38,7 +38,7 @@ public class StalactiteFeature extends Feature { for (int i = 1; i <= height; i++) { mut.setY(pos.getY() + i * dir); BlockState state = world.getBlockState(mut); - if (!state.canBeReplaced()){ + if (!state.canBeReplaced()) { stalagnate = state.is(CommonBlockTags.GEN_END_STONES); height = i; break; diff --git a/src/main/java/org/betterx/betterend/world/features/terrain/SulphurHillFeature.java b/src/main/java/org/betterx/betterend/world/features/terrain/SulphurHillFeature.java index cec20f77..0dd6dc57 100644 --- a/src/main/java/org/betterx/betterend/world/features/terrain/SulphurHillFeature.java +++ b/src/main/java/org/betterx/betterend/world/features/terrain/SulphurHillFeature.java @@ -63,7 +63,7 @@ public class SulphurHillFeature extends DefaultFeature { int d = x2 + z2; mut.setY(pos.getY()); BlockState state = world.getBlockState(mut); - if (state.canBeReplaced() || state.is(EndBlocks.HYDROTHERMAL_VENT)){ + if (state.canBeReplaced() || state.is(EndBlocks.HYDROTHERMAL_VENT)) { if (d < r2 * r2) { BlocksHelper.setWithoutUpdate(world, mut, Blocks.WATER); mut.move(Direction.DOWN); @@ -76,7 +76,7 @@ public class SulphurHillFeature extends DefaultFeature { state = world.getBlockState(mut); int maxIt = MHelper.floor(10 - Math.sqrt(d)) + random.nextInt(1); for (int i = 0; i < maxIt && state.canBeReplaced(); - i++){ + i++) { BlocksHelper.setWithoutUpdate(world, mut, rock); mut.move(Direction.DOWN); } @@ -86,7 +86,7 @@ public class SulphurHillFeature extends DefaultFeature { state = world.getBlockState(mut); int maxIt = MHelper.floor(10 - Math.sqrt(d)) + random.nextInt(1); for (int i = 0; i < maxIt && state.canBeReplaced(); - i++){ + i++) { BlocksHelper.setWithoutUpdate(world, mut, rock); mut.move(Direction.DOWN); } diff --git a/src/main/java/org/betterx/betterend/world/structures/piece/CavePiece.java b/src/main/java/org/betterx/betterend/world/structures/piece/CavePiece.java index 2ccd541b..df8042f0 100644 --- a/src/main/java/org/betterx/betterend/world/structures/piece/CavePiece.java +++ b/src/main/java/org/betterx/betterend/world/structures/piece/CavePiece.java @@ -80,7 +80,7 @@ public class CavePiece extends BasePiece { BlocksHelper.setWithoutUpdate(world, pos, CAVE_AIR); } } else if (dist < r * r) { - if (world.getBlockState(pos).canBeReplaced()){ + if (world.getBlockState(pos).canBeReplaced()) { BlocksHelper.setWithoutUpdate(world, pos, Blocks.END_STONE); } }