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 TypeMethodDescriptiondefault voiddescribeSelfInCrashReport(net.minecraft.CrashReportCategory category) To show who is this fake level in level crashesdefault net.minecraft.world.phys.AABBgetAABB()default net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) default intgetMaxX()default intgetMaxZ()default intdefault intgetMinX()default intgetMinZ()default net.minecraft.world.level.block.state.BlockStategetRawBlockState(net.minecraft.core.BlockPos pos) default Function<net.minecraft.core.BlockPos,@Nullable net.minecraft.world.level.block.state.BlockState> shortgetSizeX()shortgetSizeZ()default booleanisPosInside(net.minecraft.core.BlockPos pos) default booleanisPosOutside(net.minecraft.core.BlockPos pos) Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManagerMethods 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:
getMinBuildHeightin interfacenet.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:
getFluidStatein interfacenet.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
-