Package net.minecraft

Record Class class_9597.class_9598

java.lang.Object
java.lang.Record
net.minecraft.class_9597.class_9598
Record Components:
level -
blocks -
biome -
All Implemented Interfaces:
Iterable<BlockPos>, BlockRenderView, BlockView, HeightLimitView
Enclosing class:
class_9597

@Environment(CLIENT) public static record class_9597.class_9598(World level, class_9514 blocks, RegistryEntry<Biome> biome) extends Record implements BlockRenderView, Iterable<BlockPos>
Mappings:
Namespace Name
official fhu$a
intermediary net/minecraft/class_9597$class_9598
named net/minecraft/class_9597$class_9598
official a
intermediary comp_2606
named level
official b
intermediary comp_2607
named blocks
official c
intermediary comp_2608
named biome
  • Field Details

    • level

      private final World level
      The field for the level record component.
    • blocks

      private final class_9514 blocks
      The field for the blocks record component.
    • biome

      private final RegistryEntry<Biome> biome
      The field for the biome record component.
  • Constructor Details

  • Method Details

    • method_59311

      public static class_9597.class_9598 method_59311(class_9596 class_9596)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhu$a;a(Lfht;)Lfhu$a;
      intermediary method_59311 Lnet/minecraft/class_9597$class_9598;method_59311(Lnet/minecraft/class_9596;)Lnet/minecraft/class_9597$class_9598;
      named method_59311 Lnet/minecraft/class_9597$class_9598;method_59311(Lnet/minecraft/class_9596;)Lnet/minecraft/class_9597$class_9598;
    • getBrightness

      public float getBrightness(Direction direction, boolean shaded)
      Specified by:
      getBrightness in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      official a Ldbd;a(Liw;Z)F
      intermediary method_24852 Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
      named getBrightness Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
    • getLightingProvider

      public LightingProvider getLightingProvider()
      Specified by:
      getLightingProvider in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      official y_ Ldbd;y_()Leot;
      intermediary method_22336 Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
      named getLightingProvider Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
    • getColor

      public int getColor(BlockPos pos, ColorResolver colorResolver)
      Specified by:
      getColor in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      official a Ldbd;a(Lir;Ldbl;)I
      intermediary method_23752 Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/class_6539;)I
      named getColor Lnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/ColorResolver;)I
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Returns the block entity at pos, or null if there is none.
      Specified by:
      getBlockEntity in interface BlockView
      Returns:
      the block entity at pos, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official c_ Ldbg;c_(Lir;)Ldqc;
      intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Returns the block state at pos.
      Specified by:
      getBlockState in interface BlockView
      Returns:
      the block state at pos
      Mappings:
      Namespace Name Mixin selector
      official a_ Ldbg;a_(Lir;)Ldtc;
      intermediary method_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getFluidState

      public FluidState getFluidState(BlockPos pos)
      Returns the fluid state at pos.
      Specified by:
      getFluidState in interface BlockView
      Returns:
      the fluid state at pos
      Mappings:
      Namespace Name Mixin selector
      official b_ Ldbg;b_(Lir;)Lepe;
      intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
    • method_58798

      public boolean method_58798()
      Specified by:
      method_58798 in interface BlockView
      Mappings:
      Namespace Name Mixin selector
      official z_ Ldbg;z_()Z
      intermediary method_58798 Lnet/minecraft/class_1922;method_58798()Z
      named method_58798 Lnet/minecraft/world/BlockView;method_58798()Z
    • 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 interface HeightLimitView
      Returns:
      the difference in the minimum and maximum height
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official K_ Ldcc;K_()I
      intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
      named getHeight Lnet/minecraft/world/HeightLimitView;getHeight()I
    • getBottomY

      public int getBottomY()
      Returns the bottom Y level, or height, inclusive, of this view.
      Specified by:
      getBottomY in interface HeightLimitView
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official J_ Ldcc;J_()I
      intermediary method_31607 Lnet/minecraft/class_5539;method_31607()I
      named getBottomY Lnet/minecraft/world/HeightLimitView;getBottomY()I
    • iterator

      public Iterator<BlockPos> iterator()
      Specified by:
      iterator in interface Iterable<BlockPos>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • level

      public World level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • blocks

      public class_9514 blocks()
      Returns the value of the blocks record component.
      Returns:
      the value of the blocks record component
    • biome

      public RegistryEntry<Biome> biome()
      Returns the value of the biome record component.
      Returns:
      the value of the biome record component