Package net.minestom.server.particle
Record Class Particle.DustColorTransition
java.lang.Object
java.lang.Record
net.minestom.server.particle.Particle.DustColorTransition
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,Particle
,ProtocolObject
,StaticProtocolObject
- Enclosing interface:
Particle
public static record Particle.DustColorTransition(@NotNull NamespaceID namespace, int id, @NotNull RGBLike color, @NotNull RGBLike transitionColor, float scale)
extends Record
implements Particle
-
Nested Class Summary
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.Trail, Particle.Vibration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Particle
static final Particle
static final Particle.Block
static final Particle.BlockCrumble
static final Particle.BlockMarker
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.Dust
static final Particle.DustColorTransition
static final Particle.DustPillar
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.EntityEffect
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.FallingDust
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.Item
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.SculkCharge
static final Particle
static final Particle
static final Particle.Shriek
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.Trail
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle.Vibration
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
static final Particle
Fields inherited from interface net.minestom.server.particle.Particle
NETWORK_TYPE
-
Constructor Summary
ConstructorDescriptionDustColorTransition
(@NotNull NamespaceID namespace, int id, @NotNull RGBLike color, @NotNull RGBLike transitionColor, float scale) Creates an instance of aDustColorTransition
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull RGBLike
color()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.@NotNull NamespaceID
Returns the value of thenamespace
record component.@NotNull Particle.DustColorTransition
readData
(@NotNull NetworkBuffer reader) float
scale()
Returns the value of thescale
record component.@NotNull net.kyori.adventure.nbt.CompoundBinaryTag
toNbt()
final String
toString()
Returns a string representation of this record class.@NotNull RGBLike
Returns the value of thetransitionColor
record component.@NotNull Particle.DustColorTransition
@NotNull Particle.DustColorTransition
withProperties
(@NotNull RGBLike color, @NotNull RGBLike transitionColor, float scale) @NotNull Particle.DustColorTransition
withScale
(float scale) @NotNull Particle.DustColorTransition
withTransitionColor
(@NotNull RGBLike transitionColor) void
writeData
(@NotNull NetworkBuffer writer) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minestom.server.registry.ProtocolObject
registry
Methods inherited from interface net.minestom.server.registry.StaticProtocolObject
key, name
-
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
-
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
-
-
Constructor Details
-
DustColorTransition
public DustColorTransition(@NotNull @NotNull NamespaceID namespace, int id, @NotNull @NotNull RGBLike color, @NotNull @NotNull RGBLike transitionColor, float scale) Creates an instance of aDustColorTransition
record class.- Parameters:
namespace
- the value for thenamespace
record componentid
- the value for theid
record componentcolor
- the value for thecolor
record componenttransitionColor
- the value for thetransitionColor
record componentscale
- the value for thescale
record component
-
-
Method Details
-
withProperties
@Contract(pure=true) @NotNull public @NotNull Particle.DustColorTransition withProperties(@NotNull @NotNull RGBLike color, @NotNull @NotNull RGBLike transitionColor, float scale) -
withColor
@Contract(pure=true) @NotNull public @NotNull Particle.DustColorTransition withColor(@NotNull @NotNull RGBLike color) -
withScale
-
withTransitionColor
@Contract(pure=true) @NotNull public @NotNull Particle.DustColorTransition withTransitionColor(@NotNull @NotNull RGBLike transitionColor) -
readData
@NotNull public @NotNull Particle.DustColorTransition readData(@NotNull @NotNull NetworkBuffer reader) -
writeData
-
toNbt
@NotNull public @NotNull net.kyori.adventure.nbt.CompoundBinaryTag toNbt() -
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 '=='. -
namespace
Returns the value of thenamespace
record component.- Specified by:
namespace
in interfaceStaticProtocolObject
- Returns:
- the value of the
namespace
record component
-
id
public int id()Returns the value of theid
record component.- Specified by:
id
in interfaceStaticProtocolObject
- Returns:
- the value of the
id
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
transitionColor
Returns the value of thetransitionColor
record component.- Returns:
- the value of the
transitionColor
record component
-
scale
public float scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-