Class SingleBlockFakeLevel.SingleBlockFakeLevelGetter

java.lang.Object
com.ldtteam.structurize.client.fakelevel.SingleBlockFakeLevel.SingleBlockFakeLevelGetter
All Implemented Interfaces:
IFakeLevelBlockGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.LevelHeightAccessor, net.minecraftforge.common.extensions.IForgeBlockGetter
Enclosing class:
SingleBlockFakeLevel

public static class SingleBlockFakeLevel.SingleBlockFakeLevelGetter extends Object implements IFakeLevelBlockGetter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.level.block.entity.BlockEntity
     
    net.minecraft.world.level.block.state.BlockState
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeSelfInCrashReport(net.minecraft.CrashReportCategory category)
    To show who is this fake level in level crashes
    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
     
    short
     
    short
     

    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.BlockGetter

    clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    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

    • blockState

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

      public net.minecraft.world.level.block.entity.BlockEntity blockEntity
  • Constructor Details

    • SingleBlockFakeLevelGetter

      public SingleBlockFakeLevelGetter()
  • 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
    • getHeight

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

      public short getSizeX()
      Specified by:
      getSizeX in interface IFakeLevelBlockGetter
      Returns:
      width for X axis
    • getSizeZ

      public short getSizeZ()
      Specified by:
      getSizeZ in interface IFakeLevelBlockGetter
      Returns:
      width for Z axis
    • describeSelfInCrashReport

      public void describeSelfInCrashReport(net.minecraft.CrashReportCategory category)
      Description copied from interface: IFakeLevelBlockGetter
      To show who is this fake level in level crashes
      Specified by:
      describeSelfInCrashReport in interface IFakeLevelBlockGetter