Class BlockSetting.SingleStateBlockGetter

java.lang.Object
com.minecolonies.core.colony.buildings.modules.settings.BlockSetting.SingleStateBlockGetter
All Implemented Interfaces:
net.minecraft.world.level.BlockGetter, net.minecraft.world.level.LevelHeightAccessor, net.minecraftforge.common.extensions.IForgeBlockGetter
Enclosing class:
BlockSetting

public class BlockSetting.SingleStateBlockGetter extends Object implements net.minecraft.world.level.BlockGetter
Special block getter for shapes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleStateBlockGetter(net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(@NotNull net.minecraft.core.BlockPos pos)
     
    @NotNull net.minecraft.world.level.block.state.BlockState
    getBlockState(@NotNull net.minecraft.core.BlockPos pos)
     
    @NotNull net.minecraft.world.level.material.FluidState
    getFluidState(@NotNull net.minecraft.core.BlockPos pos)
     
    int
     
    int
     

    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
  • Constructor Details

    • SingleStateBlockGetter

      public SingleStateBlockGetter(net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • getBlockEntity

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

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

      @NotNull public @NotNull net.minecraft.world.level.material.FluidState getFluidState(@NotNull @NotNull 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