diff --git a/NMS/v1_19/src/main/java/com/bgsoftware/wildloaders/nms/v1_19/loader/ChunkLoaderBlockEntityTicker.java b/NMS/v1_19/src/main/java/com/bgsoftware/wildloaders/nms/v1_19/loader/ChunkLoaderBlockEntityTicker.java index 00e2ed0..1926a87 100644 --- a/NMS/v1_19/src/main/java/com/bgsoftware/wildloaders/nms/v1_19/loader/ChunkLoaderBlockEntityTicker.java +++ b/NMS/v1_19/src/main/java/com/bgsoftware/wildloaders/nms/v1_19/loader/ChunkLoaderBlockEntityTicker.java @@ -1,6 +1,7 @@ package com.bgsoftware.wildloaders.nms.v1_19.loader; import net.minecraft.core.BlockPos; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.TickingBlockEntity; @@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker( return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; } + public BlockEntity getTileEntity() { + return chunkLoaderBlockEntity; + } + } diff --git a/NMS/v1_20_1/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_1/loader/ChunkLoaderBlockEntityTicker.java b/NMS/v1_20_1/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_1/loader/ChunkLoaderBlockEntityTicker.java index 0728c87..bbc368a 100644 --- a/NMS/v1_20_1/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_1/loader/ChunkLoaderBlockEntityTicker.java +++ b/NMS/v1_20_1/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_1/loader/ChunkLoaderBlockEntityTicker.java @@ -1,6 +1,7 @@ package com.bgsoftware.wildloaders.nms.v1_20_1.loader; import net.minecraft.core.BlockPos; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.TickingBlockEntity; @@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker( return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; } + public BlockEntity getTileEntity() { + return chunkLoaderBlockEntity; + } + } diff --git a/NMS/v1_20_2/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_2/loader/ChunkLoaderBlockEntityTicker.java b/NMS/v1_20_2/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_2/loader/ChunkLoaderBlockEntityTicker.java index 3535452..159b244 100644 --- a/NMS/v1_20_2/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_2/loader/ChunkLoaderBlockEntityTicker.java +++ b/NMS/v1_20_2/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_2/loader/ChunkLoaderBlockEntityTicker.java @@ -1,6 +1,7 @@ package com.bgsoftware.wildloaders.nms.v1_20_2.loader; import net.minecraft.core.BlockPos; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.TickingBlockEntity; @@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker( return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; } + public BlockEntity getTileEntity() { + return chunkLoaderBlockEntity; + } + } diff --git a/NMS/v1_20_3/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_3/loader/ChunkLoaderBlockEntityTicker.java b/NMS/v1_20_3/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_3/loader/ChunkLoaderBlockEntityTicker.java index f919777..68bde49 100644 --- a/NMS/v1_20_3/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_3/loader/ChunkLoaderBlockEntityTicker.java +++ b/NMS/v1_20_3/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_3/loader/ChunkLoaderBlockEntityTicker.java @@ -1,6 +1,7 @@ package com.bgsoftware.wildloaders.nms.v1_20_3.loader; import net.minecraft.core.BlockPos; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.TickingBlockEntity; @@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker( return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; } + public BlockEntity getTileEntity() { + return chunkLoaderBlockEntity; + } + } diff --git a/NMS/v1_20_4/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_4/loader/ChunkLoaderBlockEntityTicker.java b/NMS/v1_20_4/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_4/loader/ChunkLoaderBlockEntityTicker.java index 3023867..1510fbb 100644 --- a/NMS/v1_20_4/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_4/loader/ChunkLoaderBlockEntityTicker.java +++ b/NMS/v1_20_4/src/main/java/com/bgsoftware/wildloaders/nms/v1_20_4/loader/ChunkLoaderBlockEntityTicker.java @@ -1,6 +1,7 @@ package com.bgsoftware.wildloaders.nms.v1_20_4.loader; import net.minecraft.core.BlockPos; +import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.TickingBlockEntity; @@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker( return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; } + public BlockEntity getTileEntity() { + return chunkLoaderBlockEntity; + } + }