-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ancient stuff i forgot to commit ages ago
- Loading branch information
1 parent
ee65f78
commit 97d1254
Showing
8 changed files
with
27 additions
and
140 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/net/zepalesque/zenith/mixin/mixins/common/RandomStateMixin.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 net.zepalesque.zenith.mixin.mixins.common; | ||
|
||
import com.llamalad7.mixinextras.injector.wrapoperation.Operation; | ||
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; | ||
import net.minecraft.core.HolderGetter; | ||
import net.minecraft.world.level.levelgen.DensityFunction; | ||
import net.minecraft.world.level.levelgen.NoiseGeneratorSettings; | ||
import net.minecraft.world.level.levelgen.NoiseRouter; | ||
import net.minecraft.world.level.levelgen.RandomState; | ||
import net.minecraft.world.level.levelgen.synth.NormalNoise; | ||
import net.zepalesque.zenith.world.density.PerlinNoiseFunction; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(RandomState.class) | ||
public class RandomStateMixin { | ||
@WrapOperation(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/levelgen/NoiseRouter;mapAll(Lnet/minecraft/world/level/levelgen/DensityFunction$Visitor;)Lnet/minecraft/world/level/levelgen/NoiseRouter;")) | ||
private NoiseRouter init(NoiseRouter instance, DensityFunction.Visitor visitor, Operation<NoiseRouter> original, NoiseGeneratorSettings settings, HolderGetter<NormalNoise.NoiseParameters> noiseParametersGetter, final long levelSeed) { | ||
return original.call(instance, visitor).mapAll(PerlinNoiseFunction.createOrGetVisitor(levelSeed)); | ||
} | ||
} |
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
16 changes: 0 additions & 16 deletions
16
src/main/java/net/zepalesque/zenith/util/holder/HolderUtil.java
This file was deleted.
Oops, something went wrong.
107 changes: 0 additions & 107 deletions
107
src/main/java/net/zepalesque/zenith/util/holder/KeyHolder.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/main/java/net/zepalesque/zenith/util/holder/KeySetMap.java
This file was deleted.
Oops, something went wrong.
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
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,2 @@ | ||
public net.minecraft.core.RegistrySetBuilder$UniversalLookup | ||
public net.minecraft.core.RegistrySetBuilder$UniversalLookup holders # holders |
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