Fix errors when using Folia about missing method (#101)

This commit is contained in:
OmerBenGera 2024-06-15 14:13:33 +03:00
parent b416e6c2c4
commit 88d7e247e4
5 changed files with 25 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.bgsoftware.wildloaders.nms.v1_19.loader; package com.bgsoftware.wildloaders.nms.v1_19.loader;
import net.minecraft.core.BlockPos; 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.BlockEntityType;
import net.minecraft.world.level.block.entity.TickingBlockEntity; import net.minecraft.world.level.block.entity.TickingBlockEntity;
@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker(
return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + "";
} }
public BlockEntity getTileEntity() {
return chunkLoaderBlockEntity;
}
} }

View File

@ -1,6 +1,7 @@
package com.bgsoftware.wildloaders.nms.v1_20_1.loader; package com.bgsoftware.wildloaders.nms.v1_20_1.loader;
import net.minecraft.core.BlockPos; 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.BlockEntityType;
import net.minecraft.world.level.block.entity.TickingBlockEntity; import net.minecraft.world.level.block.entity.TickingBlockEntity;
@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker(
return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + "";
} }
public BlockEntity getTileEntity() {
return chunkLoaderBlockEntity;
}
} }

View File

@ -1,6 +1,7 @@
package com.bgsoftware.wildloaders.nms.v1_20_2.loader; package com.bgsoftware.wildloaders.nms.v1_20_2.loader;
import net.minecraft.core.BlockPos; 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.BlockEntityType;
import net.minecraft.world.level.block.entity.TickingBlockEntity; import net.minecraft.world.level.block.entity.TickingBlockEntity;
@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker(
return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + "";
} }
public BlockEntity getTileEntity() {
return chunkLoaderBlockEntity;
}
} }

View File

@ -1,6 +1,7 @@
package com.bgsoftware.wildloaders.nms.v1_20_3.loader; package com.bgsoftware.wildloaders.nms.v1_20_3.loader;
import net.minecraft.core.BlockPos; 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.BlockEntityType;
import net.minecraft.world.level.block.entity.TickingBlockEntity; import net.minecraft.world.level.block.entity.TickingBlockEntity;
@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker(
return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + "";
} }
public BlockEntity getTileEntity() {
return chunkLoaderBlockEntity;
}
} }

View File

@ -1,6 +1,7 @@
package com.bgsoftware.wildloaders.nms.v1_20_4.loader; package com.bgsoftware.wildloaders.nms.v1_20_4.loader;
import net.minecraft.core.BlockPos; 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.BlockEntityType;
import net.minecraft.world.level.block.entity.TickingBlockEntity; import net.minecraft.world.level.block.entity.TickingBlockEntity;
@ -27,4 +28,8 @@ public record ChunkLoaderBlockEntityTicker(
return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + ""; return BlockEntityType.getKey(chunkLoaderBlockEntity.getType()) + "";
} }
public BlockEntity getTileEntity() {
return chunkLoaderBlockEntity;
}
} }