Interface IFakeLevelBlockGetter

All Superinterfaces:
net.minecraft.world.level.BlockGetter, net.minecraftforge.common.extensions.IForgeBlockGetter, net.minecraft.world.level.LevelHeightAccessor
All Known Implementing Classes:
Blueprint, SingleBlockFakeLevel.SingleBlockFakeLevelGetter

public interface IFakeLevelBlockGetter extends net.minecraft.world.level.BlockGetter
Data source for FakeLevel
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    describeSelfInCrashReport(net.minecraft.CrashReportCategory category)
    To show who is this fake level in level crashes
    default net.minecraft.world.phys.AABB
     
    default net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    default int
     
    default int
     
    default int
     
    default int
     
    default int
     
    default net.minecraft.world.level.block.state.BlockState
    getRawBlockState(net.minecraft.core.BlockPos pos)
     
    default Function<net.minecraft.core.BlockPos,@Nullable net.minecraft.world.level.block.state.BlockState>
     
    short
     
    short
     
    default boolean
    isPosInside(net.minecraft.core.BlockPos pos)
     
    default boolean
    isPosOutside(net.minecraft.core.BlockPos pos)
     

    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.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity, getModelDataManager

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

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

    • getSizeX

      short getSizeX()
      Returns:
      width for X axis
    • getSizeZ

      short getSizeZ()
      Returns:
      width for Z axis
    • getMinX

      default int getMinX()
      Returns:
      min X coord inclusive
      See Also:
    • getMinBuildHeight

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

      default int getMinZ()
      Returns:
      min Z coord inclusive
      See Also:
    • getMaxX

      default int getMaxX()
      Returns:
      max X coord exclusive
      See Also:
      • equivalent
    • getMaxZ

      default int getMaxZ()
      Returns:
      max Z coord exclusive
      See Also:
      • equivalent
    • isPosInside

      default boolean isPosInside(net.minecraft.core.BlockPos pos)
      Parameters:
      pos - tested pos
      Returns:
      true if inside aabb
      See Also:
      • extension of
    • isPosOutside

      default boolean isPosOutside(net.minecraft.core.BlockPos pos)
      Parameters:
      pos - tested pos
      Returns:
      true if outside aabb
      See Also:
      • extension of
    • getFluidState

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

      default void describeSelfInCrashReport(net.minecraft.CrashReportCategory category)
      To show who is this fake level in level crashes
    • getRawBlockState

      default net.minecraft.world.level.block.state.BlockState getRawBlockState(net.minecraft.core.BlockPos pos)
      Returns:
      null if pos is outside of aabb
    • getRawBlockStateFunction

      default Function<net.minecraft.core.BlockPos,@Nullable net.minecraft.world.level.block.state.BlockState> getRawBlockStateFunction()
      Returns:
      function useful temporary insert into existing world
      See Also:
    • getAABB

      default net.minecraft.world.phys.AABB getAABB()
      Returns:
      aabb with end being blockpos-wise exclusive