Interface LightUpdated

All Superinterfaces:
net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.CollisionGetter, net.minecraft.world.level.CommonLevelAccessor, net.minecraft.world.level.EntityGetter, net.minecraftforge.client.extensions.IForgeBlockAndTintGetter, net.minecraftforge.common.extensions.IForgeBlockGetter, net.minecraft.world.level.LevelAccessor, net.minecraft.world.level.LevelHeightAccessor, net.minecraft.world.level.LevelReader, net.minecraft.world.level.LevelSimulatedReader, net.minecraft.world.level.LevelSimulatedRW, net.minecraft.world.level.LevelTimeAccess, net.minecraft.world.level.LevelWriter

public interface LightUpdated extends net.minecraft.world.level.LevelAccessor
Marker interface for custom/fake levels to indicate that LightUpdater should bother interacting with it.

Implement this if your custom level has light updates at all. If so, be sure to call WorldAttached.invalidateWorld(net.minecraft.world.level.LevelAccessor) when your level in unloaded.

  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     
    static boolean
    receivesLightUpdates(net.minecraft.world.level.LevelAccessor level)
     

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.minecraft.world.level.CollisionGetter

    collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision

    Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed, registryAccess

    Methods inherited from interface net.minecraft.world.level.EntityGetter

    getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players

    Methods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGetter

    getShade

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity, getModelDataManager

    Methods inherited from interface net.minecraft.world.level.LevelAccessor

    addParticle, blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getBlockTicks, getChunkSource, getCurrentDifficultyAt, getDifficulty, getFluidTicks, getLevelData, getRandom, getServer, hasChunk, levelEvent, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight

    Methods inherited from interface net.minecraft.world.level.LevelReader

    canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt

    Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader

    isFluidAtPosition, isStateAtPosition

    Methods inherited from interface net.minecraft.world.level.LevelTimeAccess

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods inherited from interface net.minecraft.world.level.LevelWriter

    addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
  • Method Details

    • receivesLightUpdates

      default boolean receivesLightUpdates()
      Returns:
      true if this level is passing light updates into LightUpdater.
    • receivesLightUpdates

      static boolean receivesLightUpdates(net.minecraft.world.level.LevelAccessor level)