Record Class Particle.BlockMarker

java.lang.Object
java.lang.Record
net.minestom.server.particle.Particle.BlockMarker
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, Particle, ProtocolObject, StaticProtocolObject
Enclosing interface:
Particle

public static record Particle.BlockMarker(@NotNull NamespaceID namespace, int id, Block block) extends Record implements Particle
  • Field Details

    • ANGRY_VILLAGER

      static final Particle ANGRY_VILLAGER
    • BLOCK

      static final Particle.Block BLOCK
    • BLOCK_MARKER

      static final Particle.BlockMarker BLOCK_MARKER
    • BUBBLE

      static final Particle BUBBLE
    • CLOUD

      static final Particle CLOUD
    • CRIT

      static final Particle CRIT
    • DAMAGE_INDICATOR

      static final Particle DAMAGE_INDICATOR
    • DRAGON_BREATH

      static final Particle DRAGON_BREATH
    • DRIPPING_LAVA

      static final Particle DRIPPING_LAVA
    • FALLING_LAVA

      static final Particle FALLING_LAVA
    • LANDING_LAVA

      static final Particle LANDING_LAVA
    • DRIPPING_WATER

      static final Particle DRIPPING_WATER
    • FALLING_WATER

      static final Particle FALLING_WATER
    • DUST

      static final Particle.Dust DUST
    • DUST_COLOR_TRANSITION

      static final Particle.DustColorTransition DUST_COLOR_TRANSITION
    • EFFECT

      static final Particle EFFECT
    • ELDER_GUARDIAN

      static final Particle ELDER_GUARDIAN
    • ENCHANTED_HIT

      static final Particle ENCHANTED_HIT
    • ENCHANT

      static final Particle ENCHANT
    • END_ROD

      static final Particle END_ROD
    • ENTITY_EFFECT

      static final Particle.EntityEffect ENTITY_EFFECT
    • EXPLOSION_EMITTER

      static final Particle EXPLOSION_EMITTER
    • EXPLOSION

      static final Particle EXPLOSION
    • GUST

      static final Particle GUST
    • SMALL_GUST

      static final Particle SMALL_GUST
    • GUST_EMITTER_LARGE

      static final Particle GUST_EMITTER_LARGE
    • GUST_EMITTER_SMALL

      static final Particle GUST_EMITTER_SMALL
    • SONIC_BOOM

      static final Particle SONIC_BOOM
    • FALLING_DUST

      static final Particle.FallingDust FALLING_DUST
    • FIREWORK

      static final Particle FIREWORK
    • FISHING

      static final Particle FISHING
    • FLAME

      static final Particle FLAME
    • INFESTED

      static final Particle INFESTED
    • CHERRY_LEAVES

      static final Particle CHERRY_LEAVES
    • SCULK_SOUL

      static final Particle SCULK_SOUL
    • SCULK_CHARGE

      static final Particle.SculkCharge SCULK_CHARGE
    • SCULK_CHARGE_POP

      static final Particle SCULK_CHARGE_POP
    • SOUL_FIRE_FLAME

      static final Particle SOUL_FIRE_FLAME
    • SOUL

      static final Particle SOUL
    • FLASH

      static final Particle FLASH
    • HAPPY_VILLAGER

      static final Particle HAPPY_VILLAGER
    • COMPOSTER

      static final Particle COMPOSTER
    • HEART

      static final Particle HEART
    • INSTANT_EFFECT

      static final Particle INSTANT_EFFECT
    • ITEM

      static final Particle.Item ITEM
    • VIBRATION

      static final Particle.Vibration VIBRATION
    • ITEM_SLIME

      static final Particle ITEM_SLIME
    • ITEM_COBWEB

      static final Particle ITEM_COBWEB
    • ITEM_SNOWBALL

      static final Particle ITEM_SNOWBALL
    • LARGE_SMOKE

      static final Particle LARGE_SMOKE
    • LAVA

      static final Particle LAVA
    • MYCELIUM

      static final Particle MYCELIUM
    • NOTE

      static final Particle NOTE
    • POOF

      static final Particle POOF
    • PORTAL

      static final Particle PORTAL
    • RAIN

      static final Particle RAIN
    • SMOKE

      static final Particle SMOKE
    • WHITE_SMOKE

      static final Particle WHITE_SMOKE
    • SNEEZE

      static final Particle SNEEZE
    • SPIT

      static final Particle SPIT
    • SQUID_INK

      static final Particle SQUID_INK
    • SWEEP_ATTACK

      static final Particle SWEEP_ATTACK
    • TOTEM_OF_UNDYING

      static final Particle TOTEM_OF_UNDYING
    • UNDERWATER

      static final Particle UNDERWATER
    • SPLASH

      static final Particle SPLASH
    • WITCH

      static final Particle WITCH
    • BUBBLE_POP

      static final Particle BUBBLE_POP
    • CURRENT_DOWN

      static final Particle CURRENT_DOWN
    • BUBBLE_COLUMN_UP

      static final Particle BUBBLE_COLUMN_UP
    • NAUTILUS

      static final Particle NAUTILUS
    • DOLPHIN

      static final Particle DOLPHIN
    • CAMPFIRE_COSY_SMOKE

      static final Particle CAMPFIRE_COSY_SMOKE
    • CAMPFIRE_SIGNAL_SMOKE

      static final Particle CAMPFIRE_SIGNAL_SMOKE
    • DRIPPING_HONEY

      static final Particle DRIPPING_HONEY
    • FALLING_HONEY

      static final Particle FALLING_HONEY
    • LANDING_HONEY

      static final Particle LANDING_HONEY
    • FALLING_NECTAR

      static final Particle FALLING_NECTAR
    • FALLING_SPORE_BLOSSOM

      static final Particle FALLING_SPORE_BLOSSOM
    • ASH

      static final Particle ASH
    • CRIMSON_SPORE

      static final Particle CRIMSON_SPORE
    • WARPED_SPORE

      static final Particle WARPED_SPORE
    • SPORE_BLOSSOM_AIR

      static final Particle SPORE_BLOSSOM_AIR
    • DRIPPING_OBSIDIAN_TEAR

      static final Particle DRIPPING_OBSIDIAN_TEAR
    • FALLING_OBSIDIAN_TEAR

      static final Particle FALLING_OBSIDIAN_TEAR
    • LANDING_OBSIDIAN_TEAR

      static final Particle LANDING_OBSIDIAN_TEAR
    • REVERSE_PORTAL

      static final Particle REVERSE_PORTAL
    • WHITE_ASH

      static final Particle WHITE_ASH
    • SMALL_FLAME

      static final Particle SMALL_FLAME
    • SNOWFLAKE

      static final Particle SNOWFLAKE
    • DRIPPING_DRIPSTONE_LAVA

      static final Particle DRIPPING_DRIPSTONE_LAVA
    • FALLING_DRIPSTONE_LAVA

      static final Particle FALLING_DRIPSTONE_LAVA
    • DRIPPING_DRIPSTONE_WATER

      static final Particle DRIPPING_DRIPSTONE_WATER
    • FALLING_DRIPSTONE_WATER

      static final Particle FALLING_DRIPSTONE_WATER
    • GLOW_SQUID_INK

      static final Particle GLOW_SQUID_INK
    • GLOW

      static final Particle GLOW
    • WAX_ON

      static final Particle WAX_ON
    • WAX_OFF

      static final Particle WAX_OFF
    • ELECTRIC_SPARK

      static final Particle ELECTRIC_SPARK
    • SCRAPE

      static final Particle SCRAPE
    • SHRIEK

      static final Particle.Shriek SHRIEK
    • EGG_CRACK

      static final Particle EGG_CRACK
    • DUST_PLUME

      static final Particle DUST_PLUME
    • TRIAL_SPAWNER_DETECTION

      static final Particle TRIAL_SPAWNER_DETECTION
    • TRIAL_SPAWNER_DETECTION_OMINOUS

      static final Particle TRIAL_SPAWNER_DETECTION_OMINOUS
    • VAULT_CONNECTION

      static final Particle VAULT_CONNECTION
    • DUST_PILLAR

      static final Particle.DustPillar DUST_PILLAR
    • OMINOUS_SPAWNING

      static final Particle OMINOUS_SPAWNING
    • RAID_OMEN

      static final Particle RAID_OMEN
    • TRIAL_OMEN

      static final Particle TRIAL_OMEN
  • Constructor Details

    • BlockMarker

      public BlockMarker(@NotNull @NotNull NamespaceID namespace, int id, @NotNull Block block)
      Creates an instance of a BlockMarker record class.
      Parameters:
      namespace - the value for the namespace record component
      id - the value for the id record component
      block - the value for the block record component
  • Method Details

    • withBlock

      @Contract(pure=true) @NotNull public @NotNull Particle.BlockMarker withBlock(@NotNull Block block)
    • readData

      @NotNull public @NotNull Particle.BlockMarker readData(@NotNull @NotNull NetworkBuffer reader)
      Specified by:
      readData in interface Particle
    • writeData

      public void writeData(@NotNull @NotNull NetworkBuffer writer)
      Specified by:
      writeData in interface Particle
    • toNbt

      @NotNull public @NotNull net.kyori.adventure.nbt.CompoundBinaryTag toNbt()
      Specified by:
      toNbt in interface Particle
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namespace

      @NotNull public @NotNull NamespaceID namespace()
      Returns the value of the namespace record component.
      Specified by:
      namespace in interface StaticProtocolObject
      Returns:
      the value of the namespace record component
    • id

      public int id()
      Returns the value of the id record component.
      Specified by:
      id in interface StaticProtocolObject
      Returns:
      the value of the id record component
    • block

      @NotNull public Block block()
      Returns the value of the block record component.
      Returns:
      the value of the block record component