-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WorldDiff: structure starts comparison
- Loading branch information
Showing
3 changed files
with
90 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/world-diff/src/main/java/com/ishland/c2me/tests/worlddiff/mixin/IChunkSerializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.ishland.c2me.tests.worlddiff.mixin; | ||
|
||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.structure.StructureContext; | ||
import net.minecraft.structure.StructureStart; | ||
import net.minecraft.world.ChunkSerializer; | ||
import net.minecraft.world.gen.feature.ConfiguredStructureFeature; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
import java.util.Map; | ||
|
||
@Mixin(ChunkSerializer.class) | ||
public interface IChunkSerializer { | ||
|
||
@Invoker | ||
static Map<ConfiguredStructureFeature<?, ?>, StructureStart> invokeReadStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed) { | ||
throw new AbstractMethodError(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters