Skip to content

Commit

Permalink
Add CustomWallStandingBlockItem
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Feb 8, 2025
1 parent 06c06d3 commit 4b9a7aa
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.mmodding.mmodding_lib.library.items;

import net.minecraft.block.Block;
import net.minecraft.item.WallStandingBlockItem;

import java.util.concurrent.atomic.AtomicBoolean;

public class CustomWallStandingBlockItem extends WallStandingBlockItem implements ItemRegistrable {

private final AtomicBoolean registered = new AtomicBoolean(false);

public CustomWallStandingBlockItem(Block standingBlock, Block wallBlock, Settings settings) {
super(standingBlock, wallBlock, settings);
}

@Override
public boolean isNotRegistered() {
return !this.registered.get();
}

@Override
public void setRegistered() {
this.registered.set(true);
}
}

0 comments on commit 4b9a7aa

Please sign in to comment.