Record Class MobVisibility
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.MobVisibility
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMobVisibility(HolderSet targetingEntityTypes, float visibility) Creates an instance of aMobVisibilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull MobVisibility.MobVisibilityBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetingEntityTypesrecord component.@NonNull MobVisibility.MobVisibilityBuilderfinal StringtoString()Returns a string representation of this record class.floatReturns the value of thevisibilityrecord component.
-
Constructor Details
-
MobVisibility
Creates an instance of aMobVisibilityrecord class.- Parameters:
targetingEntityTypes- the value for thetargetingEntityTypesrecord componentvisibility- the value for thevisibilityrecord component
-
-
Method Details
-
builder
-
toBuilder
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
targetingEntityTypes
Returns the value of thetargetingEntityTypesrecord component.- Returns:
- the value of the
targetingEntityTypesrecord component
-
visibility
public float visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-