Class VirtualBlockGetter
java.lang.Object
dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
- All Implemented Interfaces:
net.minecraft.world.level.BlockAndTintGetter,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.LevelHeightAccessor,net.minecraftforge.client.extensions.IForgeBlockAndTintGetter,net.minecraftforge.common.extensions.IForgeBlockGetter
- Direct Known Subclasses:
EmptyVirtualBlockGetter,SinglePosVirtualBlockGetter
public abstract class VirtualBlockGetter
extends Object
implements net.minecraft.world.level.BlockAndTintGetter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc) -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockTint(net.minecraft.core.BlockPos pos, net.minecraft.world.level.ColorResolver resolver) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) net.minecraft.world.level.lighting.LevelLightEnginefloatgetShade(net.minecraft.core.Direction direction, boolean shaded) 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, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraftforge.client.extensions.IForgeBlockAndTintGetter
getShadeMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManagerMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
lightEngine
-
-
Constructor Details
-
VirtualBlockGetter
public VirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc)
-
-
Method Details
-
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos) - Specified by:
getFluidStatein interfacenet.minecraft.world.level.BlockGetter
-
getShade
public float getShade(net.minecraft.core.Direction direction, boolean shaded) - 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 resolver) - Specified by:
getBlockTintin interfacenet.minecraft.world.level.BlockAndTintGetter
-