Class WrappedBlockAndTintGetter

java.lang.Object
com.simibubi.create.foundation.utility.worldWrappers.WrappedBlockAndTintGetter
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 WrappedBlockAndTintGetter extends Object implements net.minecraft.world.level.BlockAndTintGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.level.BlockAndTintGetter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedBlockAndTintGetter(net.minecraft.world.level.BlockAndTintGetter wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    getBlockTint(net.minecraft.core.BlockPos pBlockPos, net.minecraft.world.level.ColorResolver pColorResolver)
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    int
     
    net.minecraft.world.level.lighting.LevelLightEngine
     
    int
     
    net.neoforged.neoforge.client.model.data.ModelData
    getModelData(net.minecraft.core.BlockPos pPos)
     
    float
    getShade(net.minecraft.core.Direction pDirection, boolean pShade)
     

    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

    • wrapped

      protected final net.minecraft.world.level.BlockAndTintGetter wrapped
  • Constructor Details

    • WrappedBlockAndTintGetter

      public WrappedBlockAndTintGetter(net.minecraft.world.level.BlockAndTintGetter wrapped)
  • Method Details

    • getBlockEntity

      public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • getMinBuildHeight

      public int getMinBuildHeight()
      Specified by:
      getMinBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • getShade

      public float getShade(net.minecraft.core.Direction pDirection, boolean pShade)
      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 pBlockPos, net.minecraft.world.level.ColorResolver pColorResolver)
      Specified by:
      getBlockTint in interface net.minecraft.world.level.BlockAndTintGetter
    • getModelData

      public net.neoforged.neoforge.client.model.data.ModelData getModelData(net.minecraft.core.BlockPos pPos)
      Specified by:
      getModelData in interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension