Package api.block.beacon
Record Class BeaconEffectDescriptor
java.lang.Object
java.lang.Record
api.block.beacon.BeaconEffectDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionBeaconEffectDescriptor(int block_metadata, BeaconEffect effect) Creates an instance of aBeaconEffectDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblock_metadatarecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeaconEffectDescriptor
Creates an instance of aBeaconEffectDescriptorrecord class.- Parameters:
block_metadata- the value for theblock_metadatarecord componenteffect- the value for theeffectrecord component
-
-
Method Details
-
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 '=='. -
block_metadata
public int block_metadata()Returns the value of theblock_metadatarecord component.- Returns:
- the value of the
block_metadatarecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-