Record Class ChunkFilter.Cylindrical

java.lang.Object
java.lang.Record
net.minecraft.server.network.ChunkFilter.Cylindrical
Record Components:
center -
viewDistance -
All Implemented Interfaces:
ChunkFilter
Enclosing interface:
ChunkFilter

public static record ChunkFilter.Cylindrical(ChunkPos center, int viewDistance) extends Record implements ChunkFilter
Mappings:
Namespace Name
official amr$a
intermediary net/minecraft/class_8603$class_8604
named net/minecraft/server/network/ChunkFilter$Cylindrical
official b
intermediary comp_1574
named center
official c
intermediary comp_1575
named viewDistance
  • Field Details

    • center

      private final ChunkPos center
      The field for the center record component.
    • viewDistance

      private final int viewDistance
      The field for the viewDistance record component.
  • Constructor Details

    • Cylindrical

      public Cylindrical(ChunkPos chunkPos, int int2)
  • Method Details

    • getLeft

      int getLeft()
      Mappings:
      Namespace Name Mixin selector
      official c Lamr$a;c()I
      intermediary method_52366 Lnet/minecraft/class_8603$class_8604;method_52366()I
      named getLeft Lnet/minecraft/server/network/ChunkFilter$Cylindrical;getLeft()I
    • getBottom

      int getBottom()
      Mappings:
      Namespace Name Mixin selector
      official d Lamr$a;d()I
      intermediary method_52367 Lnet/minecraft/class_8603$class_8604;method_52367()I
      named getBottom Lnet/minecraft/server/network/ChunkFilter$Cylindrical;getBottom()I
    • getRight

      int getRight()
      Mappings:
      Namespace Name Mixin selector
      official e Lamr$a;e()I
      intermediary method_52368 Lnet/minecraft/class_8603$class_8604;method_52368()I
      named getRight Lnet/minecraft/server/network/ChunkFilter$Cylindrical;getRight()I
    • getTop

      int getTop()
      Mappings:
      Namespace Name Mixin selector
      official f Lamr$a;f()I
      intermediary method_52369 Lnet/minecraft/class_8603$class_8604;method_52369()I
      named getTop Lnet/minecraft/server/network/ChunkFilter$Cylindrical;getTop()I
    • overlaps

      protected boolean overlaps(ChunkFilter.Cylindrical o)
      Mappings:
      Namespace Name Mixin selector
      official a Lamr$a;a(Lamr$a;)Z
      intermediary method_52365 Lnet/minecraft/class_8603$class_8604;method_52365(Lnet/minecraft/class_8603$class_8604;)Z
      named overlaps Lnet/minecraft/server/network/ChunkFilter$Cylindrical;overlaps(Lnet/minecraft/server/network/ChunkFilter$Cylindrical;)Z
    • isWithinDistance

      public boolean isWithinDistance(int x, int z, boolean includeEdge)
      Specified by:
      isWithinDistance in interface ChunkFilter
      Mappings:
      Namespace Name Mixin selector
      official a Lamr;a(IIZ)Z
      intermediary method_52359 Lnet/minecraft/class_8603;method_52359(IIZ)Z
      named isWithinDistance Lnet/minecraft/server/network/ChunkFilter;isWithinDistance(IIZ)Z
    • forEach

      public void forEach(Consumer<ChunkPos> consumer)
      Specified by:
      forEach in interface ChunkFilter
      Mappings:
      Namespace Name Mixin selector
      official a Lamr;a(Ljava/util/function/Consumer;)V
      intermediary method_52363 Lnet/minecraft/class_8603;method_52363(Ljava/util/function/Consumer;)V
      named forEach Lnet/minecraft/server/network/ChunkFilter;forEach(Ljava/util/function/Consumer;)V
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • center

      public ChunkPos center()
      Returns the value of the center record component.
      Returns:
      the value of the center record component
    • viewDistance

      public int viewDistance()
      Returns the value of the viewDistance record component.
      Returns:
      the value of the viewDistance record component