Package net.minecraft.server.network
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ChunkFilter
ChunkFilter.Cylindrical
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkPos
The field for thecenter
record component.private final int
The field for theviewDistance
record component.Fields inherited from interface net.minecraft.server.network.ChunkFilter
IGNORE_ALL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncenter()
Returns the value of thecenter
record component.final boolean
Indicates whether some other object is "equal to" this one.void
(package private) int
(package private) int
getLeft()
(package private) int
getRight()
(package private) int
getTop()
final int
hashCode()
Returns a hash code value for this object.boolean
isWithinDistance
(int x, int z, boolean includeEdge) protected boolean
final String
toString()
Returns a string representation of this record class.int
Returns the value of theviewDistance
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.network.ChunkFilter
isWithinDistance, isWithinDistance, isWithinDistanceExcludingEdge
-
Field Details
-
center
The field for thecenter
record component. -
viewDistance
private final int viewDistanceThe field for theviewDistance
record component.
-
-
Constructor Details
-
Cylindrical
-
-
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
- 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 interfaceChunkFilter
- 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
- Specified by:
forEach
in interfaceChunkFilter
- 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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
center
Returns the value of thecenter
record component.- Returns:
- the value of the
center
record component
-
viewDistance
public int viewDistance()Returns the value of theviewDistance
record component.- Returns:
- the value of the
viewDistance
record component
-