Package net.minestom.server.particle
Record Class Particle.Vibration
java.lang.Object
java.lang.Record
net.minestom.server.particle.Particle.Vibration
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,Particle,Holder<Particle>,RegistryKey<Particle>,StaticProtocolObject<Particle>
- Enclosing interface:
Particle
public static record Particle.Vibration(@NotNull net.kyori.adventure.key.Key key, int id, @NotNull Particle.Vibration.SourceType sourceType, @Nullable Point sourceBlockPosition, int sourceEntityId, float sourceEntityEyeHeight, int travelTicks)
extends Record
implements Particle
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minestom.server.registry.Holder
Holder.Direct<T>Nested classes/interfaces inherited from interface net.minestom.server.particle.Particle
Particle.Block, Particle.BlockCrumble, Particle.BlockMarker, Particle.Dust, Particle.DustColorTransition, Particle.DustPillar, Particle.EntityEffect, Particle.FallingDust, Particle.Item, Particle.SculkCharge, Particle.Shriek, Particle.Simple, Particle.TintedLeaves, Particle.Trail, Particle.Vibration -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Particlestatic final Particlestatic final Particle.Blockstatic final Particle.BlockCrumblestatic final Particle.BlockMarkerstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.Duststatic final Particle.DustColorTransitionstatic final Particle.DustPillarstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.EntityEffectstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.FallingDuststatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.Itemstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.SculkChargestatic final Particlestatic final Particlestatic final Particle.Shriekstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.TintedLeavesstatic final Particlestatic final Particle.Trailstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particle.Vibrationstatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final Particlestatic final ParticleFields inherited from interface net.minestom.server.particle.Particle
CODEC, NETWORK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionVibration(@NotNull net.kyori.adventure.key.Key key, int id, @NotNull Particle.Vibration.SourceType sourceType, @Nullable Point sourceBlockPosition, int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) Creates an instance of aVibrationrecord class. -
Method Summary
Modifier and TypeMethodDescription<D> @NotNull Result<D> encode(@NotNull Transcoder<D> coder) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.@NotNull net.kyori.adventure.key.Keykey()Returns the value of thekeyrecord component.@NotNull Particle.VibrationreadData(@NotNull NetworkBuffer reader) @Nullable PointReturns the value of thesourceBlockPositionrecord component.floatReturns the value of thesourceEntityEyeHeightrecord component.intReturns the value of thesourceEntityIdrecord component.@NotNull Particle.Vibration.SourceTypeReturns the value of thesourceTyperecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetravelTicksrecord component.@NotNull Particle.VibrationwithProperties(@NotNull Particle.Vibration.SourceType sourceType, @Nullable Point sourceBlockPosition, int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) @NotNull Particle.VibrationwithSourceBlockPosition(@Nullable Point sourceBlockPosition, int travelTicks) @NotNull Particle.VibrationwithSourceEntity(int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) voidwriteData(@NotNull NetworkBuffer writer) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minestom.server.registry.Holder
asKey, asValue, isDirect, resolve, unwrapMethods inherited from interface net.minestom.server.registry.StaticProtocolObject
name, registry
-
Field Details
-
ANGRY_VILLAGER
-
BLOCK
-
BLOCK_MARKER
-
BUBBLE
-
CLOUD
-
CRIT
-
DAMAGE_INDICATOR
-
DRAGON_BREATH
-
DRIPPING_LAVA
-
FALLING_LAVA
-
LANDING_LAVA
-
DRIPPING_WATER
-
FALLING_WATER
-
DUST
-
DUST_COLOR_TRANSITION
-
EFFECT
-
ELDER_GUARDIAN
-
ENCHANTED_HIT
-
ENCHANT
-
END_ROD
-
ENTITY_EFFECT
-
EXPLOSION_EMITTER
-
EXPLOSION
-
GUST
-
SMALL_GUST
-
GUST_EMITTER_LARGE
-
GUST_EMITTER_SMALL
-
SONIC_BOOM
-
FALLING_DUST
-
FIREWORK
-
FISHING
-
FLAME
-
INFESTED
-
CHERRY_LEAVES
-
PALE_OAK_LEAVES
-
TINTED_LEAVES
-
SCULK_SOUL
-
SCULK_CHARGE
-
SCULK_CHARGE_POP
-
SOUL_FIRE_FLAME
-
SOUL
-
FLASH
-
HAPPY_VILLAGER
-
COMPOSTER
-
HEART
-
INSTANT_EFFECT
-
ITEM
-
VIBRATION
-
TRAIL
-
ITEM_SLIME
-
ITEM_COBWEB
-
ITEM_SNOWBALL
-
LARGE_SMOKE
-
LAVA
-
MYCELIUM
-
NOTE
-
POOF
-
PORTAL
-
RAIN
-
SMOKE
-
WHITE_SMOKE
-
SNEEZE
-
SPIT
-
SQUID_INK
-
SWEEP_ATTACK
-
TOTEM_OF_UNDYING
-
UNDERWATER
-
SPLASH
-
WITCH
-
BUBBLE_POP
-
CURRENT_DOWN
-
BUBBLE_COLUMN_UP
-
NAUTILUS
-
DOLPHIN
-
CAMPFIRE_COSY_SMOKE
-
CAMPFIRE_SIGNAL_SMOKE
-
DRIPPING_HONEY
-
FALLING_HONEY
-
LANDING_HONEY
-
FALLING_NECTAR
-
FALLING_SPORE_BLOSSOM
-
ASH
-
CRIMSON_SPORE
-
WARPED_SPORE
-
SPORE_BLOSSOM_AIR
-
DRIPPING_OBSIDIAN_TEAR
-
FALLING_OBSIDIAN_TEAR
-
LANDING_OBSIDIAN_TEAR
-
REVERSE_PORTAL
-
WHITE_ASH
-
SMALL_FLAME
-
SNOWFLAKE
-
DRIPPING_DRIPSTONE_LAVA
-
FALLING_DRIPSTONE_LAVA
-
DRIPPING_DRIPSTONE_WATER
-
FALLING_DRIPSTONE_WATER
-
GLOW_SQUID_INK
-
GLOW
-
WAX_ON
-
WAX_OFF
-
ELECTRIC_SPARK
-
SCRAPE
-
SHRIEK
-
EGG_CRACK
-
DUST_PLUME
-
TRIAL_SPAWNER_DETECTION
-
TRIAL_SPAWNER_DETECTION_OMINOUS
-
VAULT_CONNECTION
-
DUST_PILLAR
-
OMINOUS_SPAWNING
-
RAID_OMEN
-
TRIAL_OMEN
-
BLOCK_CRUMBLE
-
FIREFLY
-
-
Constructor Details
-
Vibration
public Vibration(@NotNull @NotNull net.kyori.adventure.key.Key key, int id, @NotNull @NotNull Particle.Vibration.SourceType sourceType, @Nullable @Nullable Point sourceBlockPosition, int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) Creates an instance of aVibrationrecord class.- Parameters:
key- the value for thekeyrecord componentid- the value for theidrecord componentsourceType- the value for thesourceTyperecord componentsourceBlockPosition- the value for thesourceBlockPositionrecord componentsourceEntityId- the value for thesourceEntityIdrecord componentsourceEntityEyeHeight- the value for thesourceEntityEyeHeightrecord componenttravelTicks- the value for thetravelTicksrecord component
-
-
Method Details
-
withProperties
@Contract(pure=true) @NotNull public @NotNull Particle.Vibration withProperties(@NotNull @NotNull Particle.Vibration.SourceType sourceType, @Nullable @Nullable Point sourceBlockPosition, int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) -
withSourceBlockPosition
@Contract(pure=true) @NotNull public @NotNull Particle.Vibration withSourceBlockPosition(@Nullable @Nullable Point sourceBlockPosition, int travelTicks) -
withSourceEntity
@Contract(pure=true) @NotNull public @NotNull Particle.Vibration withSourceEntity(int sourceEntityId, float sourceEntityEyeHeight, int travelTicks) -
readData
-
writeData
-
encode
-
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 '=='. -
key
@NotNull public @NotNull net.kyori.adventure.key.Key key()Returns the value of thekeyrecord component.- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed- Specified by:
keyin interfaceStaticProtocolObject<Particle>- Returns:
- the value of the
keyrecord component
-
id
public int id()Returns the value of theidrecord component.- Specified by:
idin interfaceStaticProtocolObject<Particle>- Returns:
- the value of the
idrecord component
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
sourceBlockPosition
Returns the value of thesourceBlockPositionrecord component.- Returns:
- the value of the
sourceBlockPositionrecord component
-
sourceEntityId
public int sourceEntityId()Returns the value of thesourceEntityIdrecord component.- Returns:
- the value of the
sourceEntityIdrecord component
-
sourceEntityEyeHeight
public float sourceEntityEyeHeight()Returns the value of thesourceEntityEyeHeightrecord component.- Returns:
- the value of the
sourceEntityEyeHeightrecord component
-
travelTicks
public int travelTicks()Returns the value of thetravelTicksrecord component.- Returns:
- the value of the
travelTicksrecord component
-