Spaces:
Build error
Build error
package net.minecraft.world.level; | |
import javax.annotation.Nullable; | |
import net.minecraft.core.BlockPos; | |
import net.minecraft.core.Direction; | |
import net.minecraft.world.level.block.Blocks; | |
import net.minecraft.world.level.block.entity.BlockEntity; | |
import net.minecraft.world.level.block.state.BlockState; | |
import net.minecraft.world.level.lighting.LevelLightEngine; | |
import net.minecraft.world.level.material.FluidState; | |
import net.minecraft.world.level.material.Fluids; | |
public enum EmptyBlockAndTintGetter implements BlockAndTintGetter { | |
INSTANCE; | |
public float getShade(Direction p_363986_, boolean p_363413_) { | |
return 1.0F; | |
} | |
public LevelLightEngine getLightEngine() { | |
return LevelLightEngine.EMPTY; | |
} | |
public int getBlockTint(BlockPos p_366773_, ColorResolver p_364664_) { | |
return -1; | |
} | |
public BlockEntity getBlockEntity(BlockPos p_363724_) { | |
return null; | |
} | |
public BlockState getBlockState(BlockPos p_366523_) { | |
return Blocks.AIR.defaultBlockState(); | |
} | |
public FluidState getFluidState(BlockPos p_361173_) { | |
return Fluids.EMPTY.defaultFluidState(); | |
} | |
public int getHeight() { | |
return 0; | |
} | |
public int getMinY() { | |
return 0; | |
} | |
} |