Class OriginBlockAndTintGetter

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

public class OriginBlockAndTintGetter extends VirtualBlockGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable net.minecraft.world.level.block.entity.BlockEntity
     
    protected net.minecraft.world.level.block.state.BlockState
     

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

    lightEngine
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    int
     
    int
     
    void
    originBlockEntity(@Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
     
    void
    originBlockState(net.minecraft.world.level.block.state.BlockState state)
     

    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.minecraftforge.client.extensions.IForgeBlockAndTintGetter

    getShade

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity, getModelDataManager

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

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

    • originBlockEntity

      @Nullable protected @Nullable net.minecraft.world.level.block.entity.BlockEntity originBlockEntity
    • originBlockState

      protected net.minecraft.world.level.block.state.BlockState originBlockState
  • Constructor Details

    • OriginBlockAndTintGetter

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

    • originBlockEntity

      public void originBlockEntity(@Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    • originBlockState

      public void originBlockState(net.minecraft.world.level.block.state.BlockState state)
    • 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()