Class NeoForgeSinglePosVirtualBlockGetter

java.lang.Object
dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter
dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
dev.engine_room.flywheel.lib.model.baked.NeoForgeSinglePosVirtualBlockGetter
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

public class NeoForgeSinglePosVirtualBlockGetter extends dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable net.neoforged.neoforge.client.model.data.ModelData
     

    Fields inherited from class dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter

    blockEntity, blockState, pos

    Fields inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter

    lightEngine
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    blockEntity(@Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
     
    blockState(net.minecraft.world.level.block.state.BlockState state)
     
     
     
    net.neoforged.neoforge.client.model.data.ModelData
    getModelData(net.minecraft.core.BlockPos pos)
     
    modelData(@Nullable net.neoforged.neoforge.client.model.data.ModelData modelData)
     
    pos(net.minecraft.core.BlockPos pos)
     

    Methods inherited from class dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter

    getBlockEntity, getBlockState, getHeight, getMinBuildHeight

    Methods inherited from class dev.engine_room.flywheel.lib.model.baked.VirtualBlockGetter

    getBlockTint, getFluidState, getLightEngine, getShade

    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, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension

    getShade

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension

    getAuxLightManager, getAuxLightManager

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

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

    • modelData

      @Nullable protected @Nullable net.neoforged.neoforge.client.model.data.ModelData modelData
  • Constructor Details

    • NeoForgeSinglePosVirtualBlockGetter

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

    • createFullDark

      public static NeoForgeSinglePosVirtualBlockGetter createFullDark()
    • createFullBright

      public static NeoForgeSinglePosVirtualBlockGetter createFullBright()
    • pos

      public NeoForgeSinglePosVirtualBlockGetter pos(net.minecraft.core.BlockPos pos)
      Overrides:
      pos in class dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
    • blockState

      public NeoForgeSinglePosVirtualBlockGetter blockState(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      blockState in class dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
    • blockEntity

      public NeoForgeSinglePosVirtualBlockGetter blockEntity(@Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Overrides:
      blockEntity in class dev.engine_room.flywheel.lib.model.baked.SinglePosVirtualBlockGetter
    • modelData

      public NeoForgeSinglePosVirtualBlockGetter modelData(@Nullable @Nullable net.neoforged.neoforge.client.model.data.ModelData modelData)
    • getModelData

      public net.neoforged.neoforge.client.model.data.ModelData getModelData(net.minecraft.core.BlockPos pos)