Migrate Carpet Mixin names to mojang mappings

This commit is contained in:
FX - PR0CESS committed 2022-01-28 16:47:18 -05:00
1 parent 2c3871b90e
commit a547677597
154 files changed
+422 -501

No files matched your search

@@ -0,0 +1,41 @@
package carpet.mixins;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import carpet.fakes.Lighting_scarpetChunkCreationInterface;
import net.minecraft.world.level.lighting.LayerLightEngine;
import net.minecraft.world.level.lighting.LevelLightEngine;
@Mixin(LevelLightEngine.class)
public abstract class LevelLightEngine_scarpetChunkCreationMixin implements Lighting_scarpetChunkCreationInterface
{
@Shadow
@Final
private LayerLightEngine<?, ?> blockEngine;
@Shadow
@Final
private LayerLightEngine<?, ?> skyEngine;
@Override
public void removeLightData(final long pos)
{
if (this.blockEngine != null)
((Lighting_scarpetChunkCreationInterface) this.blockEngine).removeLightData(pos);
if (this.skyEngine != null)
((Lighting_scarpetChunkCreationInterface) this.skyEngine).removeLightData(pos);
}
@Override
public void relight(final long pos)
{
if (this.blockEngine != null)
((Lighting_scarpetChunkCreationInterface) this.blockEngine).relight(pos);
if (this.skyEngine != null)
((Lighting_scarpetChunkCreationInterface) this.skyEngine).relight(pos);
}
}