Package net.minecraft.world
Enum Class EmptyBlockRenderView
- All Implemented Interfaces:
Serializable
,Comparable<EmptyBlockRenderView>
,Constable
,BlockRenderView
,BlockView
,HeightLimitView
- Mappings:
Namespace Name named net/minecraft/world/EmptyBlockRenderView
intermediary net/minecraft/class_9891
official dgv
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface net.minecraft.world.BlockView
field_54147
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.getBlockState
(BlockPos pos) Returns the block state atpos
.int
Returns the bottom Y level, or height, inclusive, of this view.float
getBrightness
(Direction direction, boolean shaded) int
getColor
(BlockPos pos, ColorResolver colorResolver) getFluidState
(BlockPos pos) Returns the fluid state atpos
.int
static EmptyBlockRenderView
Returns the enum constant of this class with the specified name.static EmptyBlockRenderView[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Enum Constant Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector named INSTANCE
Lnet/minecraft/world/EmptyBlockRenderView;INSTANCE:Lnet/minecraft/world/EmptyBlockRenderView;
intermediary field_52611
Lnet/minecraft/class_9891;field_52611:Lnet/minecraft/class_9891;
official a
Ldgv;a:Ldgv;
-
-
Constructor Details
-
EmptyBlockRenderView
private EmptyBlockRenderView()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBrightness
- Specified by:
getBrightness
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getBrightness
Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
intermediary method_24852
Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
official a
Ldgj;a(Ljm;Z)F
-
getLightingProvider
- Specified by:
getLightingProvider
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getLightingProvider
Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
intermediary method_22336
Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
official C_
Ldgj;C_()Letl;
-
getColor
- Specified by:
getColor
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getColor
Lnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/ColorResolver;)I
intermediary method_23752
Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/class_6539;)I
official a
Ldgj;a(Ljh;Ldgr;)I
-
getBlockEntity
Returns the block entity atpos
, ornull
if there is none.- Specified by:
getBlockEntity
in interfaceBlockView
- Returns:
- the block entity at
pos
, ornull
if there is none - Mappings:
Namespace Name Mixin selector named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
official c_
Ldgm;c_(Ljh;)Lduw;
-
getBlockState
Returns the block state atpos
.- Specified by:
getBlockState
in interfaceBlockView
- Returns:
- the block state at
pos
- Implementation Note:
- This returns the block state for
Blocks.VOID_AIR
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official a_
Ldgm;a_(Ljh;)Ldxu;
-
getFluidState
Returns the fluid state atpos
.- Specified by:
getFluidState
in interfaceBlockView
- Returns:
- the fluid state at
pos
- Implementation Note:
- This returns the fluid state for
Fluids.EMPTY
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
official b_
Ldgm;b_(Ljh;)Letw;
-
getHeight
public int getHeight()Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- Specified by:
getHeight
in interfaceHeightLimitView
- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
official M_
Ldhj;M_()I
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomY
in interfaceHeightLimitView
- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
official L_
Ldhj;L_()I
-