Wall mosses

This commit is contained in:
paulevsGitch 2020-11-04 15:55:26 +03:00
parent 8279dcd8ef
commit a0ecdff67f
17 changed files with 322 additions and 5 deletions

View file

@ -1,8 +1,15 @@
package ru.betterend.blocks.basis;
import java.util.List;
import com.google.common.collect.Lists;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.BlockState;
import net.minecraft.block.Material;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContext;
import net.minecraft.sound.BlockSoundGroup;
public class BlockWallMushroom extends BlockWallPlant {
@ -19,4 +26,9 @@ public class BlockWallMushroom extends BlockWallPlant {
.blockVision((state, world, pos) -> { return false; })
.noCollision());
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
return Lists.newArrayList(new ItemStack(this));
}
}

View file

@ -113,11 +113,6 @@ public class BlockWallPlant extends BlockPlant {
}
}
@Override
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
return Lists.newArrayList(new ItemStack(this));
}
@Override
public BlockState rotate(BlockState state, BlockRotation rotation) {
return BlocksHelper.rotateHorizontal(state, rotation, FACING);