diff options
Diffstat (limited to 'src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java')
| -rw-r--r-- | src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java b/src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java index e50563a..ade24fb 100644 --- a/src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java +++ b/src/main/java/lv/enes/mc/eris_alchemy/block/ChestLikeBlock.java | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | package lv.enes.mc.eris_alchemy.block; | 1 | package lv.enes.mc.eris_alchemy.block; |
| 2 | 2 | ||
| 3 | import jakarta.annotation.Nonnull; | 3 | import jakarta.annotation.Nonnull; |
| 4 | import lv.enes.mc.eris_alchemy.block.entity.ChestLikeBlockEntity; | 4 | import lv.enes.mc.eris_alchemy.block.entity.ChestLikeEntity; |
| 5 | import net.minecraft.core.BlockPos; | 5 | import net.minecraft.core.BlockPos; |
| 6 | import net.minecraft.core.Direction; | 6 | import net.minecraft.core.Direction; |
| 7 | import net.minecraft.network.chat.Component; | 7 | import net.minecraft.network.chat.Component; |
| @@ -33,7 +33,7 @@ import net.minecraft.world.phys.shapes.VoxelShape; | |||
| 33 | 33 | ||
| 34 | import java.util.function.Supplier; | 34 | import java.util.function.Supplier; |
| 35 | 35 | ||
| 36 | public abstract class ChestLikeBlock<E extends ChestLikeBlockEntity> | 36 | public abstract class ChestLikeBlock<E extends ChestLikeEntity> |
| 37 | extends AbstractChestBlock<E> | 37 | extends AbstractChestBlock<E> |
| 38 | implements SimpleWaterloggedBlock | 38 | implements SimpleWaterloggedBlock |
| 39 | { | 39 | { |
| @@ -85,7 +85,7 @@ public abstract class ChestLikeBlock<E extends ChestLikeBlockEntity> | |||
| 85 | 85 | ||
| 86 | @Override | 86 | @Override |
| 87 | public MenuProvider getMenuProvider(BlockState state, Level world, BlockPos pos) { | 87 | public MenuProvider getMenuProvider(BlockState state, Level world, BlockPos pos) { |
| 88 | if (world.getBlockEntity(pos) instanceof ChestLikeBlockEntity entity) { | 88 | if (world.getBlockEntity(pos) instanceof ChestLikeEntity entity) { |
| 89 | return new SimpleMenuProvider(entity, getContainerTitle()); | 89 | return new SimpleMenuProvider(entity, getContainerTitle()); |
| 90 | } | 90 | } |
| 91 | return null; | 91 | return null; |