[Change] Fixed nature block selection
This commit is contained in:
parent
f51b2e3869
commit
3cb3ddb388
9 changed files with 19 additions and 16 deletions
|
@ -1,9 +1,9 @@
|
|||
package org.betterx.betterend.blocks;
|
||||
|
||||
import org.betterx.bclib.behaviours.BehaviourBuilders;
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourShearablePlant;
|
||||
import org.betterx.bclib.client.render.BCLRenderLayer;
|
||||
import org.betterx.bclib.interfaces.RenderLayerProvider;
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableShears;
|
||||
import org.betterx.betterend.registry.EndBlocks;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
|
@ -24,7 +24,7 @@ import net.minecraft.world.level.material.FluidState;
|
|||
import net.minecraft.world.level.material.Fluids;
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
|
||||
public class CrystalMossCoverBlock extends MultifaceBlock implements BonemealableBlock, SimpleWaterloggedBlock, RenderLayerProvider, AddMineableShears {
|
||||
public class CrystalMossCoverBlock extends MultifaceBlock implements BonemealableBlock, SimpleWaterloggedBlock, RenderLayerProvider, BehaviourShearablePlant {
|
||||
private static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;
|
||||
private final MultifaceSpreader spreader = new MultifaceSpreader(this);
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.betterend.blocks;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourPlant;
|
||||
import org.betterx.bclib.blocks.BaseDoublePlantBlock;
|
||||
import org.betterx.betterend.registry.EndBlocks;
|
||||
|
||||
|
@ -10,7 +11,7 @@ import net.minecraft.world.entity.item.ItemEntity;
|
|||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
public class TwistedUmbrellaMossTallBlock extends BaseDoublePlantBlock {
|
||||
public class TwistedUmbrellaMossTallBlock extends BaseDoublePlantBlock implements BehaviourPlant {
|
||||
public TwistedUmbrellaMossTallBlock() {
|
||||
super(12);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.betterend.blocks;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourPlant;
|
||||
import org.betterx.bclib.blocks.BaseDoublePlantBlock;
|
||||
import org.betterx.betterend.registry.EndBlocks;
|
||||
|
||||
|
@ -10,7 +11,7 @@ import net.minecraft.world.entity.item.ItemEntity;
|
|||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
public class UmbrellaMossTallBlock extends BaseDoublePlantBlock {
|
||||
public class UmbrellaMossTallBlock extends BaseDoublePlantBlock implements BehaviourPlant {
|
||||
public UmbrellaMossTallBlock() {
|
||||
super(12);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.betterend.blocks.basis;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourPlant;
|
||||
import org.betterx.bclib.blocks.BasePlantBlock;
|
||||
import org.betterx.betterend.interfaces.PottablePlant;
|
||||
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
||||
|
@ -7,7 +8,7 @@ import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
|||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
public class EndPlantBlock extends BasePlantBlock implements PottablePlant {
|
||||
public class EndPlantBlock extends BasePlantBlock implements PottablePlant, BehaviourPlant {
|
||||
protected EndPlantBlock() {
|
||||
super();
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package org.betterx.betterend.blocks.basis;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourPlant;
|
||||
import org.betterx.bclib.blocks.BaseWallPlantBlock;
|
||||
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
||||
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
public class EndWallPlantBlock extends BaseWallPlantBlock {
|
||||
public class EndWallPlantBlock extends BaseWallPlantBlock implements BehaviourPlant {
|
||||
public EndWallPlantBlock() {
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package org.betterx.betterend.blocks.basis;
|
||||
|
||||
import org.betterx.bclib.behaviours.BehaviourBuilders;
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourShearablePlant;
|
||||
import org.betterx.bclib.blocks.BaseAttachedBlock;
|
||||
import org.betterx.bclib.client.render.BCLRenderLayer;
|
||||
import org.betterx.bclib.interfaces.RenderLayerProvider;
|
||||
import org.betterx.bclib.interfaces.tools.AddMineableShears;
|
||||
import org.betterx.bclib.items.tool.BaseShearsItem;
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
import org.betterx.worlds.together.tag.v3.TagManager;
|
||||
|
@ -31,7 +31,7 @@ import com.google.common.collect.Maps;
|
|||
import java.util.EnumMap;
|
||||
import java.util.List;
|
||||
|
||||
public class FurBlock extends BaseAttachedBlock implements RenderLayerProvider, AddMineableShears {
|
||||
public class FurBlock extends BaseAttachedBlock implements RenderLayerProvider, BehaviourShearablePlant {
|
||||
private static final EnumMap<Direction, VoxelShape> BOUNDING_SHAPES = Maps.newEnumMap(Direction.class);
|
||||
private final ItemLike drop;
|
||||
private final int dropChance;
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
package org.betterx.betterend.blocks.basis;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourSeed;
|
||||
import org.betterx.bclib.blocks.BaseCropBlock;
|
||||
import org.betterx.betterend.interfaces.PottablePlant;
|
||||
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
||||
public class PottableCropBlock extends BaseCropBlock implements PottablePlant {
|
||||
public class PottableCropBlock extends BaseCropBlock implements PottablePlant, BehaviourSeed {
|
||||
private final Block[] terrain;
|
||||
|
||||
public PottableCropBlock(Item drop, Block... terrain) {
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
package org.betterx.betterend.blocks.basis;
|
||||
|
||||
import org.betterx.bclib.behaviours.interfaces.BehaviourSapling;
|
||||
import org.betterx.bclib.blocks.FeatureSaplingBlock;
|
||||
import org.betterx.betterend.interfaces.PottablePlant;
|
||||
|
||||
import net.minecraft.world.level.levelgen.feature.Feature;
|
||||
import net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration;
|
||||
|
||||
public abstract class PottableFeatureSapling<F extends Feature<FC>, FC extends FeatureConfiguration> extends FeatureSaplingBlock<F, FC> implements PottablePlant {
|
||||
public abstract class PottableFeatureSapling<F extends Feature<FC>, FC extends FeatureConfiguration> extends FeatureSaplingBlock<F, FC> implements PottablePlant, BehaviourSapling {
|
||||
|
||||
public PottableFeatureSapling(FeatureSupplier<F, FC> featureSupplier) {
|
||||
super(featureSupplier);
|
||||
|
|
|
@ -12,13 +12,10 @@ public class CreativeTabs {
|
|||
BCLCreativeTabManager.create(BetterEnd.MOD_ID)
|
||||
.createTab("nature")
|
||||
.setPredicate(item -> BCLCreativeTab.NATURE.contains(item)
|
||||
// || item == NetherItems.AGAVE_LEAF
|
||||
// || item == NetherItems.BLACK_APPLE
|
||||
// || item == NetherBlocks.MAGMA_FLOWER.asItem()
|
||||
// || item == NetherBlocks.MAT_RUBEUS.getBlockItem(NetherSlots.CONE)
|
||||
// || item == NetherBlocks.MAT_WILLOW.getBlockItem(WillowMaterial.BLOCK_TORCH)
|
||||
|| item == EndItems.END_LILY_LEAF
|
||||
|| item == EndItems.END_LILY_LEAF_DRIED
|
||||
)
|
||||
.setIcon(EndBlocks.FILALUX_LANTERN)
|
||||
.setIcon(EndBlocks.TENANEA_FLOWERS)
|
||||
.build()
|
||||
.createBlockTab(EndBlocks.END_MYCELIUM)
|
||||
.build()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue