fix client methods in biome, fixes #870
This commit is contained in:
1 parent
4466c77780
commit
7fd49e0f04
4 files changed
+81
-5
No files matched your search
@@ -0,0 +1,53 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.BiomeEffectsInterface;
|
||||
import net.minecraft.world.biome.BiomeEffects;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@Mixin(BiomeEffects.class)
|
||||
public class BiomeEffects_scarpetMixin implements BiomeEffectsInterface
|
||||
{
|
||||
@Shadow @Final private int fogColor;
|
||||
|
||||
@Shadow @Final private Optional<Integer> foliageColor;
|
||||
|
||||
@Shadow @Final private int skyColor;
|
||||
|
||||
@Shadow @Final private int waterColor;
|
||||
|
||||
@Shadow @Final private int waterFogColor;
|
||||
|
||||
@Override
|
||||
public int getCMFogColor()
|
||||
{
|
||||
return fogColor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<Integer> getCMFoliageColor()
|
||||
{
|
||||
return foliageColor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCMSkyColor()
|
||||
{
|
||||
return skyColor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCMWaterColor()
|
||||
{
|
||||
return waterColor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCMWaterFogColor()
|
||||
{
|
||||
return waterFogColor;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user