Skip to content

Commit

Permalink
refactor: remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiven committed Nov 10, 2024
1 parent d5a23ee commit 2122aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
import org.allaymc.api.block.type.BlockType;
import org.allaymc.api.entity.Entity;
import org.allaymc.api.item.ItemStack;
import org.allaymc.api.item.data.ItemId;
import org.allaymc.api.item.type.ItemTypes;
import org.allaymc.api.world.Dimension;
import org.joml.Vector3ic;

import java.util.Set;

import static org.allaymc.api.block.property.type.BlockPropertyTypes.UPPER_BLOCK_BIT;

/**
Expand All @@ -23,11 +19,9 @@
* @author daoge_cmd | Dhaiven
*/
public class BlockTallGrassBaseComponentImpl extends BlockShortGrassBaseComponentImpl {
protected final ItemId shearDrop;

public BlockTallGrassBaseComponentImpl(BlockType<? extends BlockBehavior> blockType, ItemId shearDrop) {
public BlockTallGrassBaseComponentImpl(BlockType<? extends BlockBehavior> blockType) {
super(blockType);
this.shearDrop = shearDrop;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.allaymc.api.block.type.BlockType;
import org.allaymc.api.block.type.BlockTypes;
import org.allaymc.api.blockentity.type.BlockEntityTypes;
import org.allaymc.api.item.data.ItemId;
import org.allaymc.api.item.type.ItemType;
import org.allaymc.api.item.type.ItemTypes;
import org.allaymc.api.math.voxelshape.VoxelShapes;
Expand Down Expand Up @@ -258,13 +257,13 @@ public static void initTallGrass() {
.builder(BlockTallGrassBehavior.class)
.vanillaBlock(BlockId.TALL_GRASS)
.setProperties(BlockPropertyTypes.UPPER_BLOCK_BIT)
.setBlockBaseComponentSupplier(blockType -> new BlockTallGrassBaseComponentImpl(blockType, ItemId.SHORT_GRASS))
.setBlockBaseComponentSupplier(BlockTallGrassBaseComponentImpl::new)
.build();
BlockTypes.LARGE_FERN = AllayBlockType
.builder(BlockLargeFernBehavior.class)
.vanillaBlock(BlockId.LARGE_FERN)
.setProperties(BlockPropertyTypes.UPPER_BLOCK_BIT)
.setBlockBaseComponentSupplier(blockType -> new BlockTallGrassBaseComponentImpl(blockType, ItemId.FERN))
.setBlockBaseComponentSupplier(BlockTallGrassBaseComponentImpl::new)
.build();
}

Expand Down

0 comments on commit 2122aa2

Please sign in to comment.