22
33import juuxel .adorn .block .entity .KitchenCupboardBlockEntity ;
44import juuxel .adorn .block .entity .SimpleContainerBlockEntity ;
5- import juuxel .adorn .block .variant .BlockVariant ;
65import juuxel .adorn .lib .AdornStats ;
76import juuxel .adorn .platform .PlatformBridges ;
87import net .minecraft .block .AbstractBlock ;
1615import net .minecraft .util .ItemScatterer ;
1716import net .minecraft .util .hit .BlockHitResult ;
1817import net .minecraft .util .math .BlockPos ;
18+ import net .minecraft .util .math .Direction ;
1919import net .minecraft .util .math .random .Random ;
2020import net .minecraft .world .World ;
2121import org .jetbrains .annotations .Nullable ;
@@ -34,7 +34,7 @@ public String getDescriptionKey() {
3434
3535 @ Override
3636 protected ActionResult onUse (BlockState state , World world , BlockPos pos , PlayerEntity player , BlockHitResult hit ) {
37- if (world .isClient ) return ActionResult .SUCCESS ;
37+ if (world .isClient () ) return ActionResult .SUCCESS ;
3838
3939 if (world .getBlockEntity (pos ) instanceof KitchenCupboardBlockEntity cupboard ) {
4040 PlatformBridges .get ().getMenus ().open (player , cupboard , pos );
@@ -55,7 +55,7 @@ public boolean hasComparatorOutput(BlockState state) {
5555 }
5656
5757 @ Override
58- public int getComparatorOutput (BlockState state , World world , BlockPos pos ) {
58+ protected int getComparatorOutput (BlockState state , World world , BlockPos pos , Direction direction ) {
5959 return Menu .calculateComparatorOutput (world .getBlockEntity (pos ));
6060 }
6161
0 commit comments