Record Class ParticleMapping.LevelEventTypeBased
java.lang.Object
java.lang.Record
org.geysermc.geyser.level.particle.ParticleMapping.LevelEventTypeBased
- All Implemented Interfaces:
ParticleMapping
- Enclosing interface:
ParticleMapping
public static record ParticleMapping.LevelEventTypeBased(org.cloudburstmc.protocol.bedrock.data.LevelEventType event)
extends Record
implements ParticleMapping
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.level.particle.ParticleMapping
ParticleMapping.BuiltIn, ParticleMapping.IdentifierBased, ParticleMapping.LevelEventTypeBased -
Constructor Summary
ConstructorsConstructorDescriptionLevelEventTypeBased(org.cloudburstmc.protocol.bedrock.data.LevelEventType event) Creates an instance of aLevelEventTypeBasedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.cloudburstmc.protocol.bedrock.data.LevelEventTypeevent()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.Function<ParticleRandomization, org.cloudburstmc.protocol.bedrock.packet.BedrockPacket> mapParticle(GeyserSession session, @Nullable org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleData particleData) Optional<org.cloudburstmc.protocol.bedrock.data.ParticleType> final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LevelEventTypeBased
public LevelEventTypeBased(org.cloudburstmc.protocol.bedrock.data.LevelEventType event) Creates an instance of aLevelEventTypeBasedrecord class.- Parameters:
event- the value for theeventrecord component
-
-
Method Details
-
particleType
- Specified by:
particleTypein interfaceParticleMapping
-
mapParticle
public Function<ParticleRandomization,org.cloudburstmc.protocol.bedrock.packet.BedrockPacket> mapParticle(GeyserSession session, @Nullable org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleData particleData) - Specified by:
mapParticlein interfaceParticleMapping
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
event
public org.cloudburstmc.protocol.bedrock.data.LevelEventType event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-