-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
32 additions
and
16 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
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
34 changes: 25 additions & 9 deletions
34
...adysnake/effective/core/mixin/water/integration/sodium/SodiumWaterfallGeneratorAdder.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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
//package org.ladysnake.effective.core.mixin.water.integration.sodium; | ||
// | ||
//@Mixin(FluidRenderer.class) | ||
//public class SodiumWaterfallGeneratorAdder { | ||
// @Inject(method = "render", at = @At("HEAD")) | ||
// public void effective$generateWaterfall(LevelSlice world, BlockState blockState, FluidState fluidState, BlockPos pos, BlockPos offset, TranslucentGeometryCollector translucentGeometryCollector, ChunkBuildBuffers buffers, CallbackInfo ci) { | ||
// WaterfallCloudGenerators.addGenerator(fluidState, pos.toImmutable()); | ||
// } | ||
//} | ||
package org.ladysnake.effective.core.mixin.water.integration.sodium; | ||
|
||
import net.caffeinemc.mods.sodium.client.model.color.ColorProvider; | ||
import net.caffeinemc.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder; | ||
import net.caffeinemc.mods.sodium.client.render.chunk.compile.pipeline.DefaultFluidRenderer; | ||
import net.caffeinemc.mods.sodium.client.render.chunk.terrain.material.Material; | ||
import net.caffeinemc.mods.sodium.client.render.chunk.translucent_sorting.TranslucentGeometryCollector; | ||
import net.caffeinemc.mods.sodium.client.world.LevelSlice; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.client.texture.Sprite; | ||
import net.minecraft.fluid.FluidState; | ||
import net.minecraft.util.math.BlockPos; | ||
import org.ladysnake.effective.core.world.WaterfallCloudGenerators; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(DefaultFluidRenderer.class) | ||
public class SodiumWaterfallGeneratorAdder { | ||
@Inject(method = "render", at = @At("HEAD")) | ||
public void effective$generateWaterfall(LevelSlice level, BlockState blockState, FluidState fluidState, BlockPos blockPos, BlockPos offset, TranslucentGeometryCollector collector, ChunkModelBuilder meshBuilder, Material material, ColorProvider<FluidState> colorProvider, Sprite[] sprites, CallbackInfo ci) { | ||
WaterfallCloudGenerators.addGenerator(fluidState, blockPos.toImmutable()); | ||
} | ||
} |
Binary file modified
BIN
-17.9 KB
(29%)
src/client/resources/assets/effective/textures/particle/mist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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