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
Direct Known Subclasses:
OriginBlockAndTintGetter, VirtualEmptyBlockGetter

public abstract class VirtualBlockGetter extends Object implements net.minecraft.world.level.BlockAndTintGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final VirtualLightEngine
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBlockTint(net.minecraft.core.BlockPos pos, net.minecraft.world.level.ColorResolver resolver)
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    float
    getShade(net.minecraft.core.Direction direction, boolean shaded)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    canSeeSky, getBrightness, getRawBrightness

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

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

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

    getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
  • Field Details

  • 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:
      getFluidState in interface net.minecraft.world.level.BlockGetter
    • getShade

      public float getShade(net.minecraft.core.Direction direction, boolean shaded)
      Specified by:
      getShade in interface net.minecraft.world.level.BlockAndTintGetter
    • getLightEngine

      public net.minecraft.world.level.lighting.LevelLightEngine getLightEngine()
      Specified by:
      getLightEngine in interface net.minecraft.world.level.BlockAndTintGetter
    • getBlockTint

      public int getBlockTint(net.minecraft.core.BlockPos pos, net.minecraft.world.level.ColorResolver resolver)
      Specified by:
      getBlockTint in interface net.minecraft.world.level.BlockAndTintGetter