Added simple class for custom noise in SurfaceRules
This commit is contained in:
parent
28a2ce53fd
commit
46af6f07e2
5 changed files with 90 additions and 2 deletions
|
@ -0,0 +1,38 @@
|
|||
package ru.bclib.mixin.common;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||
import net.minecraft.world.level.levelgen.NoiseChunk;
|
||||
import net.minecraft.world.level.levelgen.SurfaceRules;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Accessor;
|
||||
|
||||
@Mixin(SurfaceRules.Context.class)
|
||||
public interface SurfaceRulesContextAccessor {
|
||||
@Accessor("blockX")
|
||||
int getBlockX();
|
||||
|
||||
@Accessor("blockY")
|
||||
int getBlockY();
|
||||
|
||||
@Accessor("blockZ")
|
||||
int getBlockZ();
|
||||
|
||||
@Accessor("surfaceDepth")
|
||||
int getSurfaceDepth();
|
||||
|
||||
@Accessor("biome")
|
||||
Supplier<Biome> getBiome();
|
||||
|
||||
@Accessor("biomeKey")
|
||||
Supplier<ResourceKey<Biome>> getBiomeKey();
|
||||
|
||||
@Accessor("chunk")
|
||||
ChunkAccess getChunk();
|
||||
|
||||
@Accessor("noiseChunk")
|
||||
NoiseChunk getNoiseChunk();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue