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 named net/minecraft/server/network/ChunkFilter$Cylindricalintermediary net/minecraft/class_8603$class_8604official ark$anamed centerintermediary comp_1574official bnamed viewDistanceintermediary comp_1575official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.network.ChunkFilter
ChunkFilter.Cylindrical -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkPosThe field for thecenterrecord component.private final intThe field for theviewDistancerecord component.Fields inherited from interface net.minecraft.server.network.ChunkFilter
IGNORE_ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncenter()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.void(package private) int(package private) intgetLeft()(package private) intgetRight()(package private) intgetTop()final inthashCode()Returns a hash code value for this object.booleanisWithinDistance(int x, int z, boolean includeEdge) protected booleanfinal StringtoString()Returns a string representation of this record class.intReturns the value of theviewDistancerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.network.ChunkFilter
isWithinDistance, isWithinDistance, isWithinDistanceExcludingEdge
-
Field Details
-
center
The field for thecenterrecord component. -
viewDistance
private final int viewDistanceThe field for theviewDistancerecord component.
-
-
Constructor Details
-
Cylindrical
-
-
Method Details
-
getLeft
int getLeft()- Mappings:
Namespace Name Mixin selector named getLeftLnet/minecraft/server/network/ChunkFilter$Cylindrical;getLeft()Iintermediary method_52366Lnet/minecraft/class_8603$class_8604;method_52366()Iofficial cLark$a;c()I
-
getBottom
int getBottom()- Mappings:
Namespace Name Mixin selector named getBottomLnet/minecraft/server/network/ChunkFilter$Cylindrical;getBottom()Iintermediary method_52367Lnet/minecraft/class_8603$class_8604;method_52367()Iofficial dLark$a;d()I
-
getRight
int getRight()- Mappings:
Namespace Name Mixin selector named getRightLnet/minecraft/server/network/ChunkFilter$Cylindrical;getRight()Iintermediary method_52368Lnet/minecraft/class_8603$class_8604;method_52368()Iofficial eLark$a;e()I
-
getTop
int getTop()- Mappings:
Namespace Name Mixin selector named getTopLnet/minecraft/server/network/ChunkFilter$Cylindrical;getTop()Iintermediary method_52369Lnet/minecraft/class_8603$class_8604;method_52369()Iofficial fLark$a;f()I
-
overlaps
- Mappings:
Namespace Name Mixin selector named overlapsLnet/minecraft/server/network/ChunkFilter$Cylindrical;overlaps(Lnet/minecraft/server/network/ChunkFilter$Cylindrical;)Zintermediary method_52365Lnet/minecraft/class_8603$class_8604;method_52365(Lnet/minecraft/class_8603$class_8604;)Zofficial aLark$a;a(Lark$a;)Z
-
isWithinDistance
public boolean isWithinDistance(int x, int z, boolean includeEdge) - Specified by:
isWithinDistancein interfaceChunkFilter- Mappings:
Namespace Name Mixin selector named isWithinDistanceLnet/minecraft/server/network/ChunkFilter;isWithinDistance(IIZ)Zintermediary method_52359Lnet/minecraft/class_8603;method_52359(IIZ)Zofficial aLark;a(IIZ)Z
-
forEach
- Specified by:
forEachin interfaceChunkFilter- Mappings:
Namespace Name Mixin selector named forEachLnet/minecraft/server/network/ChunkFilter;forEach(Ljava/util/function/Consumer;)Vintermediary method_52363Lnet/minecraft/class_8603;method_52363(Ljava/util/function/Consumer;)Vofficial aLark;a(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 thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
viewDistance
public int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-