Reformatted Code
This commit is contained in:
parent
2b21b0472f
commit
b95e3ccdef
10 changed files with 21 additions and 16 deletions
|
@ -1,6 +1,5 @@
|
||||||
package org.betterx.betterend.client;
|
package org.betterx.betterend.client;
|
||||||
|
|
||||||
import org.betterx.betterend.BetterEnd;
|
|
||||||
import org.betterx.betterend.client.render.BetterEndSkyRenderer;
|
import org.betterx.betterend.client.render.BetterEndSkyRenderer;
|
||||||
import org.betterx.betterend.events.ItemTooltipCallback;
|
import org.betterx.betterend.events.ItemTooltipCallback;
|
||||||
import org.betterx.betterend.interfaces.MultiModelItem;
|
import org.betterx.betterend.interfaces.MultiModelItem;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package org.betterx.betterend.entity.model;
|
package org.betterx.betterend.entity.model;
|
||||||
|
|
||||||
import org.betterx.betterend.BetterEnd;
|
|
||||||
import org.betterx.betterend.entity.SilkMothEntity;
|
import org.betterx.betterend.entity.SilkMothEntity;
|
||||||
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -10,13 +10,13 @@ import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.core.BlockPos.MutableBlockPos;
|
import net.minecraft.core.BlockPos.MutableBlockPos;
|
||||||
|
import net.minecraft.core.Direction;
|
||||||
import net.minecraft.util.RandomSource;
|
import net.minecraft.util.RandomSource;
|
||||||
import net.minecraft.world.level.WorldGenLevel;
|
import net.minecraft.world.level.WorldGenLevel;
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
||||||
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
|
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
|
||||||
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
|
import net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;
|
||||||
import net.minecraft.core.Direction;
|
|
||||||
import net.minecraft.world.level.material.Fluids;
|
import net.minecraft.world.level.material.Fluids;
|
||||||
|
|
||||||
public class SmaragdantCrystalFeature extends DefaultFeature {
|
public class SmaragdantCrystalFeature extends DefaultFeature {
|
||||||
|
@ -56,10 +56,17 @@ public class SmaragdantCrystalFeature extends DefaultFeature {
|
||||||
BlockState sideState = world.getBlockState(sidePos);
|
BlockState sideState = world.getBlockState(sidePos);
|
||||||
if (BuddingSmaragdantCrystalBlock.canShardGrowAtState(sideState)) {
|
if (BuddingSmaragdantCrystalBlock.canShardGrowAtState(sideState)) {
|
||||||
if (random.nextBoolean()) {
|
if (random.nextBoolean()) {
|
||||||
BlockState attachedShard = EndBlocks.SMARAGDANT_CRYSTAL_SHARD.defaultBlockState()
|
BlockState attachedShard = EndBlocks.SMARAGDANT_CRYSTAL_SHARD
|
||||||
.setValue(SmaragdantCrystalShardBlock.WATERLOGGED,
|
.defaultBlockState()
|
||||||
sideState.getFluidState().getType() == Fluids.WATER)
|
.setValue(
|
||||||
.setValue(SmaragdantCrystalShardBlock.FACING, k);
|
SmaragdantCrystalShardBlock.WATERLOGGED,
|
||||||
|
sideState.getFluidState()
|
||||||
|
.getType() == Fluids.WATER
|
||||||
|
)
|
||||||
|
.setValue(
|
||||||
|
SmaragdantCrystalShardBlock.FACING,
|
||||||
|
k
|
||||||
|
);
|
||||||
BlocksHelper.setWithoutUpdate(world, sidePos, attachedShard);
|
BlocksHelper.setWithoutUpdate(world, sidePos, attachedShard);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue