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$aintermediary net/minecraft/class_8603$class_8604named net/minecraft/server/network/ChunkFilter$Cylindricalofficial bintermediary comp_1574named centerofficial cintermediary comp_1575named viewDistance
-
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 official cLamr$a;c()Iintermediary method_52366Lnet/minecraft/class_8603$class_8604;method_52366()Inamed getLeftLnet/minecraft/server/network/ChunkFilter$Cylindrical;getLeft()I
-
getBottom
int getBottom()- Mappings:
Namespace Name Mixin selector official dLamr$a;d()Iintermediary method_52367Lnet/minecraft/class_8603$class_8604;method_52367()Inamed getBottomLnet/minecraft/server/network/ChunkFilter$Cylindrical;getBottom()I
-
getRight
int getRight()- Mappings:
Namespace Name Mixin selector official eLamr$a;e()Iintermediary method_52368Lnet/minecraft/class_8603$class_8604;method_52368()Inamed getRightLnet/minecraft/server/network/ChunkFilter$Cylindrical;getRight()I
-
getTop
int getTop()- Mappings:
Namespace Name Mixin selector official fLamr$a;f()Iintermediary method_52369Lnet/minecraft/class_8603$class_8604;method_52369()Inamed getTopLnet/minecraft/server/network/ChunkFilter$Cylindrical;getTop()I
-
overlaps
- Mappings:
Namespace Name Mixin selector official aLamr$a;a(Lamr$a;)Zintermediary method_52365Lnet/minecraft/class_8603$class_8604;method_52365(Lnet/minecraft/class_8603$class_8604;)Znamed overlapsLnet/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:
isWithinDistancein interfaceChunkFilter- Mappings:
Namespace Name Mixin selector official aLamr;a(IIZ)Zintermediary method_52359Lnet/minecraft/class_8603;method_52359(IIZ)Znamed isWithinDistanceLnet/minecraft/server/network/ChunkFilter;isWithinDistance(IIZ)Z
-
forEach
- Specified by:
forEachin interfaceChunkFilter- Mappings:
Namespace Name Mixin selector official aLamr;a(Ljava/util/function/Consumer;)Vintermediary method_52363Lnet/minecraft/class_8603;method_52363(Ljava/util/function/Consumer;)Vnamed forEachLnet/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 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
-