Class SinglePosVirtualBlockGetter

java.lang.Object
dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
All Implemented Interfaces:
net.fabricmc.fabric.api.blockview.v2.FabricBlockView, net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.LevelHeightAccessor
Direct Known Subclasses:
FabricSinglePosVirtualBlockGetter

public class SinglePosVirtualBlockGetter extends VirtualBlockGetter
  • Field Details

    • pos

      protected net.minecraft.core.BlockPos pos
    • blockState

      protected net.minecraft.world.level.block.state.BlockState blockState
    • blockEntity

      @Nullable protected @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity
  • Constructor Details

    • SinglePosVirtualBlockGetter

      public SinglePosVirtualBlockGetter(ToIntFunction<net.minecraft.core.BlockPos> blockLightFunc, ToIntFunction<net.minecraft.core.BlockPos> skyLightFunc)
  • Method Details

    • createFullDark

      public static SinglePosVirtualBlockGetter createFullDark()
    • createFullBright

      public static SinglePosVirtualBlockGetter createFullBright()
    • pos

      public SinglePosVirtualBlockGetter pos(net.minecraft.core.BlockPos pos)
    • blockState

      public SinglePosVirtualBlockGetter blockState(net.minecraft.world.level.block.state.BlockState state)
    • blockEntity

      public SinglePosVirtualBlockGetter blockEntity(@Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • getBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
    • getHeight

      public int getHeight()
    • getMinBuildHeight

      public int getMinBuildHeight()