diff --git a/src/main/java/net/gensokyoreimagined/nitori/mixin/world/inline_height/WorldChunkMixin.java b/src/main/java/net/gensokyoreimagined/nitori/mixin/world/inline_height/WorldChunkMixin.java index b4c20f9..eb7e727 100644 --- a/src/main/java/net/gensokyoreimagined/nitori/mixin/world/inline_height/WorldChunkMixin.java +++ b/src/main/java/net/gensokyoreimagined/nitori/mixin/world/inline_height/WorldChunkMixin.java @@ -1,62 +1,62 @@ package net.gensokyoreimagined.nitori.mixin.world.inline_height; -import net.minecraft.core.BlockPos; -import net.minecraft.world.level.LevelHeightAccessor; -import net.minecraft.world.level.Level; -import net.minecraft.world.level.chunk.LevelChunk; -import org.spongepowered.asm.mixin.Final; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; - -@Mixin(LevelChunk.class) -public abstract class WorldChunkMixin implements LevelHeightAccessor { - - @Shadow - @Final - Level level; - - @Override - public int getMaxBuildHeight() { - return this.level.getMaxBuildHeight(); - } - - @Override - public int getSectionsCount() { - return this.level.getSectionsCount(); - } - - @Override - public int getMinSection() { - return this.level.getMinSection(); - } - - @Override - public int getMaxSection() { - return this.level.getMaxSection(); - } - - @Override - public boolean isOutsideBuildHeight(BlockPos pos) { - return this.level.isOutsideBuildHeight(pos); - } - - @Override - public boolean isOutsideBuildHeight(int y) { - return this.level.isOutsideBuildHeight(y); - } - - @Override - public int getSectionIndex(int y) { - return this.level.getSectionIndex(y); - } - - @Override - public int getSectionIndexFromSectionY(int coord) { - return this.level.getSectionIndexFromSectionY(coord); - } - - @Override - public int getSectionYFromSectionIndex(int index) { - return this.level.getSectionYFromSectionIndex(index); - } -} \ No newline at end of file +//import net.minecraft.core.BlockPos; +//import net.minecraft.world.level.LevelHeightAccessor; +//import net.minecraft.world.level.Level; +//import net.minecraft.world.level.chunk.LevelChunk; +//import org.spongepowered.asm.mixin.Final; +//import org.spongepowered.asm.mixin.Mixin; +//import org.spongepowered.asm.mixin.Shadow; +// +//@Mixin(LevelChunk.class) +//public abstract class WorldChunkMixin implements LevelHeightAccessor { +// +// @Shadow +// @Final +// Level level; +// +// @Override +// public int getMaxBuildHeight() { +// return this.level.getMaxBuildHeight(); +// } +// +// @Override +// public int getSectionsCount() { +// return this.level.getSectionsCount(); +// } +// +// @Override +// public int getMinSection() { +// return this.level.getMinSection(); +// } +// +// @Override +// public int getMaxSection() { +// return this.level.getMaxSection(); +// } +// +// @Override +// public boolean isOutsideBuildHeight(BlockPos pos) { +// return this.level.isOutsideBuildHeight(pos); +// } +// +// @Override +// public boolean isOutsideBuildHeight(int y) { +// return this.level.isOutsideBuildHeight(y); +// } +// +// @Override +// public int getSectionIndex(int y) { +// return this.level.getSectionIndex(y); +// } +// +// @Override +// public int getSectionIndexFromSectionY(int coord) { +// return this.level.getSectionIndexFromSectionY(coord); +// } +// +// @Override +// public int getSectionYFromSectionIndex(int index) { +// return this.level.getSectionYFromSectionIndex(index); +// } +//} \ No newline at end of file diff --git a/src/main/resources/mixins.core.json b/src/main/resources/mixins.core.json index ae34f87..f4dd32f 100755 --- a/src/main/resources/mixins.core.json +++ b/src/main/resources/mixins.core.json @@ -35,7 +35,6 @@ "util.MixinLevelBlockEntityRetrieval", "cached_hashcode.BlockNeighborGroupMixin", "shapes.blockstate_cache.BlockMixin", - "world.inline_height.WorldChunkMixin", "math.fast_blockops.DirectionMixin", "math.fast_blockops.BlockPosMixin", "math.fast_util.AxisCycleDirectionMixin.BackwardMixin",