Class FakeClientWorld
java.lang.Object
dev.latvian.mods.kubejs.web.local.client.FakeClientWorld
- All Implemented Interfaces:
net.minecraft.world.level.BlockAndTintGetter,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.LevelHeightAccessor,net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension,net.neoforged.neoforge.common.extensions.IBlockGetterExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.world.level.biome.Biomefinal net.minecraft.world.level.block.state.BlockStatefinal net.minecraft.world.level.LevelReader -
Constructor Summary
ConstructorsConstructorDescriptionFakeClientWorld(net.minecraft.world.level.LevelReader parent, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) intgetBlockTint(net.minecraft.core.BlockPos pos, net.minecraft.world.level.ColorResolver colorResolver) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) intnet.minecraft.world.level.lighting.LevelLightEngineintfloatgetShade(net.minecraft.core.Direction direction, boolean shade) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShadeMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
parent
public final net.minecraft.world.level.LevelReader parent -
blockState
public final net.minecraft.world.level.block.state.BlockState blockState -
biome
public final net.minecraft.world.level.biome.Biome biome
-
-
Constructor Details
-
FakeClientWorld
public FakeClientWorld(net.minecraft.world.level.LevelReader parent, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
-
-
Method Details
-
getShade
public float getShade(net.minecraft.core.Direction direction, boolean shade) - Specified by:
getShadein interfacenet.minecraft.world.level.BlockAndTintGetter
-
getLightEngine
public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()- Specified by:
getLightEnginein interfacenet.minecraft.world.level.BlockAndTintGetter
-
getBlockTint
public int getBlockTint(net.minecraft.core.BlockPos pos, net.minecraft.world.level.ColorResolver colorResolver) - Specified by:
getBlockTintin interfacenet.minecraft.world.level.BlockAndTintGetter
-
getBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
getBlockEntityin interfacenet.minecraft.world.level.BlockGetter
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) - Specified by:
getBlockStatein interfacenet.minecraft.world.level.BlockGetter
-
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos) - Specified by:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfacenet.minecraft.world.level.LevelHeightAccessor
-