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
SetGameruleInt
GetGamerule
Locate
Say
Tell
Me
TeamMessage
ListPlayers
StopServer
BanPlayers
BanIP
PardonPlayers
Fields
§
targets: Vec<EntityTarget>PardonIP
Banlist
Op
Fields
§
targets: Vec<EntityTarget>Deop
Fields
§
targets: Vec<EntityTarget>WhitelistAdd
Fields
§
targets: Vec<EntityTarget>WhitelistRemove
Fields
§
targets: Vec<EntityTarget>WhitelistOn
WhitelistOff
WhitelistReload
WhitelistList
Kick
Kill
Fields
§
target: EntityTargetSetXP
AddXP
GetXP
Enchant
Seed
GetDifficulty
SetDifficulty
Fields
§
difficulty: DifficultyReload
StopSound
SetBlock
Fields
§
data: SetBlockDataFill
Clone
SetWeather
AddTime
SetTime
SetTimePreset
Fields
§
time: TimePresetGetTime
AddTag
RemoveTag
ListTags
Fields
§
target: EntityTargetRideMount
RideDismount
Fields
§
target: EntityTargetFillBiome
Fields
§
data: FillBiomeDataSpectate
SpectateStop
SetGamemode
DefaultGamemode
TeleportToEntity
TeleportToLocation
TeleportWithRotation
TeleportFacingLocation
TeleportFacingEntity
GiveItem
AddScoreboardObjective
RemoveScoreboardObjective
ListScoreboardObjectives
TriggerAdd
TriggerSet
GetAttribute
GetAttributeBase
SetAttributeBase
AddAttributeModifier
RemoveAttributeModifier
GetAttributeModifier
DisableDatapack
EnableDatapack
SetDatapackPriority
SetDatapackOrder
ListDatapacks
Fields
§
mode: DatapackListModeListPlayerUUIDs
SummonEntity
SetWorldSpawn
ClearItems
SetSpawnpoint
SpreadPlayers
ClearEffect
GiveEffect
LootGive
LootInsert
LootSpawn
LootReplaceBlock
LootReplaceEntity
ItemModify
ItemReplaceWith
ItemReplaceFrom
PlaceFeature
PlaceJigsaw
PlaceStructure
WorldBorderAdd
WorldBorderSet
WorldBorderGet
WorldBorderCenter
Fields
§
pos: IntCoordinatesWorldBorderDamage
WorldBorderBuffer
WorldBorderWarningDistance
WorldBorderWarningTime
PlaySound
Trait Implementations§
source§impl Clone for MinecraftInstr
impl Clone for MinecraftInstr
source§fn clone(&self) -> MinecraftInstr
fn clone(&self) -> MinecraftInstr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MinecraftInstr
impl Debug for MinecraftInstr
source§impl PartialEq for MinecraftInstr
impl PartialEq for MinecraftInstr
source§fn eq(&self, other: &MinecraftInstr) -> bool
fn eq(&self, other: &MinecraftInstr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MinecraftInstr
Auto Trait Implementations§
impl RefUnwindSafe for MinecraftInstr
impl Send for MinecraftInstr
impl Sync for MinecraftInstr
impl Unpin for MinecraftInstr
impl UnwindSafe for MinecraftInstr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more