From 00df052755fe871dfe6e2e998e3ea317f837666c Mon Sep 17 00:00:00 2001 From: Quarris Date: Mon, 23 May 2022 21:19:24 +0100 Subject: [PATCH] Added a constructor for PipeBlockEntity which accepts a BlockEntityType parameter --- .../java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java index c83f4c7..dab0372 100644 --- a/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java +++ b/src/main/java/de/ellpeck/prettypipes/pipe/PipeBlockEntity.java @@ -30,6 +30,7 @@ import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.entity.BlockEntity; +import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.phys.AABB; import net.minecraftforge.api.distmarker.Dist; @@ -81,6 +82,10 @@ public class PipeBlockEntity extends BlockEntity implements MenuProvider, IPipeC super(Registry.pipeBlockEntity, pos, state); } + public PipeBlockEntity(BlockEntityType type, BlockPos pos, BlockState state) { + super(type, pos, state); + } + @Override public void onChunkUnloaded() { PipeNetwork.get(this.level).uncachePipe(this.worldPosition);