Package net.minecraft.world
Interface LunarWorldView
- All Superinterfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,HeightLimitView,WorldView
- All Known Subinterfaces:
ServerWorldAccess,StructureWorldAccess,WorldAccess
- All Known Implementing Classes:
ChunkRegion,ClientWorld,ServerWorld,World
public interface LunarWorldView extends WorldView
-
Method Summary
Modifier and Type Method Description longgetLunarTime()default intgetMoonPhase()Gets the moon phase index of Minecraft's moon.default floatgetMoonSize()Gets the current size of the moon in the world.default floatgetSkyAngle(float tickDelta)Methods inherited from interface net.minecraft.world.biome.source.BiomeAccess.Storage
method_31609Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891Methods inherited from interface net.minecraft.world.WorldView
containsFluid, getAmbientDarkness, getBiome, getBiomeAccess, getBiomeForNoiseGen, getBottomSectionLimit, getBrightness, getChunk, getChunk, getChunk, getChunk, getColor, getDimension, getExistingChunk, getGeneratorStoredBiome, getLightLevel, getLightLevel, getSeaLevel, getSectionCount, getStrongRedstonePower, getTopPosition, getTopY, isAir, isChunkLoaded, isChunkLoaded, isClient, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater, method_29556
-
Method Details
-
getLunarTime
long getLunarTime() -
getMoonSize
default float getMoonSize()Gets the current size of the moon in the world.- Returns:
- the size of the moon on a scale of
0.0Fto1.0F
-
getSkyAngle
default float getSkyAngle(float tickDelta) -
getMoonPhase
@Environment(CLIENT) default int getMoonPhase()Gets the moon phase index of Minecraft's moon.This is typically used to determine the size of the moon that should be rendered.
-