pub enum MinecraftInstr {
Show 102 variants SetGameruleBool { rule: String, value: bool, }, SetGameruleInt { rule: String, value: i32, }, GetGamerule { rule: String, }, Locate { location_type: Location, location: ResourceLocation, }, Say { message: String, }, Tell { target: EntityTarget, message: String, }, Me { message: String, }, TeamMessage { message: String, }, ListPlayers, StopServer, BanPlayers { targets: Vec<EntityTarget>, reason: Option<String>, }, BanIP { target: String, reason: Option<String>, }, PardonPlayers { targets: Vec<EntityTarget>, }, PardonIP { target: String, }, Banlist, Op { targets: Vec<EntityTarget>, }, Deop { targets: Vec<EntityTarget>, }, WhitelistAdd { targets: Vec<EntityTarget>, }, WhitelistRemove { targets: Vec<EntityTarget>, }, WhitelistOn, WhitelistOff, WhitelistReload, WhitelistList, Kick { targets: Vec<EntityTarget>, reason: Option<String>, }, Kill { target: EntityTarget, }, SetXP { target: EntityTarget, amount: i32, value: XPValue, }, AddXP { target: EntityTarget, amount: i32, value: XPValue, }, GetXP { target: EntityTarget, value: XPValue, }, Enchant { target: EntityTarget, enchantment: ResourceLocation, level: i32, }, Seed, GetDifficulty, SetDifficulty { difficulty: Difficulty, }, Reload, StopSound, SetBlock { data: SetBlockData, }, Fill { data: FillData, }, Clone { data: CloneData, }, SetWeather { weather: Weather, duration: Option<Time>, }, AddTime { time: Time, }, SetTime { time: Time, }, SetTimePreset { time: TimePreset, }, GetTime { query: TimeQuery, }, AddTag { target: EntityTarget, tag: Identifier, }, RemoveTag { target: EntityTarget, tag: Identifier, }, ListTags { target: EntityTarget, }, RideMount { target: EntityTarget, vehicle: EntityTarget, }, RideDismount { target: EntityTarget, }, FillBiome { data: FillBiomeData, }, Spectate { target: EntityTarget, spectator: EntityTarget, }, SpectateStop, SetGamemode { target: EntityTarget, gamemode: Gamemode, }, DefaultGamemode { gamemode: Gamemode, }, TeleportToEntity { source: EntityTarget, dest: EntityTarget, }, TeleportToLocation { source: EntityTarget, dest: DoubleCoordinates, }, TeleportWithRotation { source: EntityTarget, dest: DoubleCoordinates, rotation: DoubleCoordinates2D, }, TeleportFacingLocation { source: EntityTarget, dest: DoubleCoordinates, facing: DoubleCoordinates, }, TeleportFacingEntity { source: EntityTarget, dest: DoubleCoordinates, facing: EntityTarget, }, GiveItem { target: EntityTarget, item: ItemData, amount: u32, }, AddScoreboardObjective { objective: String, criterion: Criterion, display_name: Option<String>, }, RemoveScoreboardObjective { objective: String, }, ListScoreboardObjectives, TriggerAdd { objective: String, amount: i32, }, TriggerSet { objective: String, amount: i32, }, GetAttribute { target: EntityTarget, attribute: ResourceLocation, scale: f64, }, GetAttributeBase { target: EntityTarget, attribute: ResourceLocation, scale: f64, }, SetAttributeBase { target: EntityTarget, attribute: ResourceLocation, value: f64, }, AddAttributeModifier { target: EntityTarget, attribute: ResourceLocation, uuid: UUID, name: String, value: f64, ty: AttributeType, }, RemoveAttributeModifier { target: EntityTarget, attribute: ResourceLocation, uuid: UUID, }, GetAttributeModifier { target: EntityTarget, attribute: ResourceLocation, uuid: UUID, scale: f64, }, DisableDatapack { pack: String, }, EnableDatapack { pack: String, }, SetDatapackPriority { pack: String, priority: DatapackPriority, }, SetDatapackOrder { pack: String, order: DatapackOrder, existing: String, }, ListDatapacks { mode: DatapackListMode, }, ListPlayerUUIDs, SummonEntity { entity: ResourceLocation, pos: DoubleCoordinates, nbt: NBTCompoundTypeContents, }, SetWorldSpawn { pos: IntCoordinates, angle: Angle, }, ClearItems { targets: Vec<EntityTarget>, item: Option<ItemData>, max_count: Option<u32>, }, SetSpawnpoint { targets: Vec<EntityTarget>, pos: IntCoordinates, angle: Angle, }, SpreadPlayers { center: DoubleCoordinates2D, spread_distance: f32, max_range: f32, max_height: Option<f32>, respect_teams: bool, target: EntityTarget, }, ClearEffect { target: EntityTarget, effect: Option<ResourceLocation>, }, GiveEffect { target: EntityTarget, effect: ResourceLocation, duration: EffectDuration, amplifier: u8, hide_particles: bool, }, LootGive { player: EntityTarget, source: LootSource, }, LootInsert { pos: IntCoordinates, source: LootSource, }, LootSpawn { pos: DoubleCoordinates, source: LootSource, }, LootReplaceBlock { pos: IntCoordinates, slot: String, count: i32, source: LootSource, }, LootReplaceEntity { target: EntityTarget, slot: String, count: i32, source: LootSource, }, ItemModify { location: ItemModifyLocation, slot: String, modifier: ResourceLocation, }, ItemReplaceWith { location: ItemModifyLocation, slot: String, item: ItemData, count: i32, }, ItemReplaceFrom { dest: ItemModifyLocation, slot: String, source: ItemModifyLocation, modifier: Option<ResourceLocation>, }, PlaceFeature { feature: ResourceLocation, pos: IntCoordinates, }, PlaceJigsaw { pool: ResourceLocation, target: ResourceLocation, max_depth: u8, pos: IntCoordinates, }, PlaceStructure { structure: ResourceLocation, pos: IntCoordinates, }, WorldBorderAdd { dist: f64, time: i32, }, WorldBorderSet { dist: f64, time: i32, }, WorldBorderGet, WorldBorderCenter { pos: IntCoordinates, }, WorldBorderDamage { damage: f64, }, WorldBorderBuffer { buffer: f64, }, WorldBorderWarningDistance { dist: f64, }, WorldBorderWarningTime { time: i32, }, PlaySound { sound: ResourceLocation, source: SoundSource, target: EntityTarget, pos: DoubleCoordinates, volume: Float, pitch: Float, min_volume: Float, },
}

Variants§

§

SetGameruleBool

Fields

§rule: String
§value: bool
§

SetGameruleInt

Fields

§rule: String
§value: i32
§

GetGamerule

Fields

§rule: String
§

Locate

Fields

§location_type: Location
§

Say

Fields

§message: String
§

Tell

Fields

§message: String
§

Me

Fields

§message: String
§

TeamMessage

Fields

§message: String
§

ListPlayers

§

StopServer

§

BanPlayers

Fields

§reason: Option<String>
§

BanIP

Fields

§target: String
§reason: Option<String>
§

PardonPlayers

Fields

§

PardonIP

Fields

§target: String
§

Banlist

§

Op

Fields

§

Deop

Fields

§

WhitelistAdd

Fields

§

WhitelistRemove

Fields

§

WhitelistOn

§

WhitelistOff

§

WhitelistReload

§

WhitelistList

§

Kick

Fields

§reason: Option<String>
§

Kill

Fields

§

SetXP

Fields

§amount: i32
§value: XPValue
§

AddXP

Fields

§amount: i32
§value: XPValue
§

GetXP

Fields

§value: XPValue
§

Enchant

Fields

§enchantment: ResourceLocation
§level: i32
§

Seed

§

GetDifficulty

§

SetDifficulty

Fields

§difficulty: Difficulty
§

Reload

§

StopSound

§

SetBlock

Fields

§

Fill

Fields

§

Clone

Fields

§

SetWeather

Fields

§weather: Weather
§duration: Option<Time>
§

AddTime

Fields

§time: Time
§

SetTime

Fields

§time: Time
§

SetTimePreset

Fields

§

GetTime

Fields

§

AddTag

Fields

§

RemoveTag

Fields

§

ListTags

Fields

§

RideMount

Fields

§

RideDismount

Fields

§

FillBiome

Fields

§

Spectate

Fields

§spectator: EntityTarget
§

SpectateStop

§

SetGamemode

Fields

§gamemode: Gamemode
§

DefaultGamemode

Fields

§gamemode: Gamemode
§

TeleportToEntity

Fields

§

TeleportToLocation

§

TeleportWithRotation

§

TeleportFacingLocation

§

TeleportFacingEntity

§

GiveItem

Fields

§amount: u32
§

AddScoreboardObjective

Fields

§objective: String
§criterion: Criterion
§display_name: Option<String>
§

RemoveScoreboardObjective

Fields

§objective: String
§

ListScoreboardObjectives

§

TriggerAdd

Fields

§objective: String
§amount: i32
§

TriggerSet

Fields

§objective: String
§amount: i32
§

GetAttribute

Fields

§scale: f64
§

GetAttributeBase

Fields

§scale: f64
§

SetAttributeBase

Fields

§value: f64
§

AddAttributeModifier

Fields

§uuid: UUID
§name: String
§value: f64
§

RemoveAttributeModifier

Fields

§uuid: UUID
§

GetAttributeModifier

Fields

§uuid: UUID
§scale: f64
§

DisableDatapack

Fields

§pack: String
§

EnableDatapack

Fields

§pack: String
§

SetDatapackPriority

Fields

§pack: String
§

SetDatapackOrder

Fields

§pack: String
§existing: String
§

ListDatapacks

Fields

§

ListPlayerUUIDs

§

SummonEntity

§

SetWorldSpawn

Fields

§angle: Angle
§

ClearItems

Fields

§max_count: Option<u32>
§

SetSpawnpoint

Fields

§angle: Angle
§

SpreadPlayers

Fields

§spread_distance: f32
§max_range: f32
§max_height: Option<f32>
§respect_teams: bool
§

ClearEffect

§

GiveEffect

Fields

§amplifier: u8
§hide_particles: bool
§

LootGive

Fields

§source: LootSource
§

LootInsert

Fields

§source: LootSource
§

LootSpawn

§

LootReplaceBlock

Fields

§slot: String
§count: i32
§source: LootSource
§

LootReplaceEntity

Fields

§slot: String
§count: i32
§source: LootSource
§

ItemModify

Fields

§slot: String
§

ItemReplaceWith

Fields

§slot: String
§count: i32
§

ItemReplaceFrom

§

PlaceFeature

§

PlaceJigsaw

§

PlaceStructure

§

WorldBorderAdd

Fields

§dist: f64
§time: i32
§

WorldBorderSet

Fields

§dist: f64
§time: i32
§

WorldBorderGet

§

WorldBorderCenter

Fields

§

WorldBorderDamage

Fields

§damage: f64
§

WorldBorderBuffer

Fields

§buffer: f64
§

WorldBorderWarningDistance

Fields

§dist: f64
§

WorldBorderWarningTime

Fields

§time: i32
§

PlaySound

Fields

§volume: Float
§pitch: Float
§min_volume: Float

Trait Implementations§

source§

impl Clone for MinecraftInstr

source§

fn clone(&self) -> MinecraftInstr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MinecraftInstr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for MinecraftInstr

source§

fn eq(&self, other: &MinecraftInstr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for MinecraftInstr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.