LayerLightEngine -> LightEngine

This commit is contained in:
Frank 2023-05-24 19:13:20 +02:00
parent e8cddbda54
commit f5a37f688f
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.SnowLayerBlock; import net.minecraft.world.level.block.SnowLayerBlock;
import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.lighting.LayerLightEngine; import net.minecraft.world.level.lighting.LightEngine;
import net.minecraft.world.level.storage.loot.LootParams; import net.minecraft.world.level.storage.loot.LootParams;
import net.minecraft.world.level.storage.loot.parameters.LootContextParams; import net.minecraft.world.level.storage.loot.parameters.LootContextParams;
@ -54,7 +54,7 @@ public class MossyDragonBoneBlock extends BaseRotatedPillarBlock {
} else if (blockState.getFluidState().getAmount() == 8) { } else if (blockState.getFluidState().getAmount() == 8) {
return false; return false;
} else { } else {
int i = LayerLightEngine.getLightBlockInto( int i = LightEngine.getLightBlockInto(
worldView, worldView,
state, state,
pos, pos,

View file

@ -13,7 +13,7 @@ import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.SnowLayerBlock; import net.minecraft.world.level.block.SnowLayerBlock;
import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.lighting.LayerLightEngine; import net.minecraft.world.level.lighting.LightEngine;
import net.minecraft.world.level.storage.loot.LootParams; import net.minecraft.world.level.storage.loot.LootParams;
import net.minecraft.world.level.storage.loot.parameters.LootContextParams; import net.minecraft.world.level.storage.loot.parameters.LootContextParams;
@ -53,7 +53,7 @@ public class MossyObsidian extends BaseBlock {
} else if (blockState.getFluidState().getAmount() == 8) { } else if (blockState.getFluidState().getAmount() == 8) {
return false; return false;
} else { } else {
int i = LayerLightEngine.getLightBlockInto( int i = LightEngine.getLightBlockInto(
worldView, worldView,
state, state,
pos, pos,