#[repr(u32)]pub enum GameRule {
Show 59 variants
AdvanceTime = 0,
AdvanceWeather = 1,
AllowEnteringNetherUsingPortals = 2,
BlockDrops = 3,
BlockExplosionDropDecay = 4,
CommandBlocksWork = 5,
CommandBlockOutput = 6,
DrowningDamage = 7,
ElytraMovementCheck = 8,
EnderPearlsVanishOnDeath = 9,
EntityDrops = 10,
FallDamage = 11,
FireDamage = 12,
FireSpreadRadiusAroundPlayer = 13,
ForgiveDeadPlayers = 14,
FreezeDamage = 15,
GlobalSoundEvents = 16,
ImmediateRespawn = 17,
KeepInventory = 18,
LavaSourceConversion = 19,
LimitedCrafting = 20,
LocatorBar = 21,
LogAdminCommands = 22,
MaxBlockModifications = 23,
MaxCommandForks = 24,
MaxCommandSequenceLength = 25,
MaxEntityCramming = 26,
MaxMinecartSpeed = 27,
MaxSnowAccumulationHeight = 28,
MobDrops = 29,
MobExplosionDropDecay = 30,
MobGriefing = 31,
NaturalHealthRegeneration = 32,
PlayerMovementCheck = 33,
PlayersNetherPortalCreativeDelay = 34,
PlayersNetherPortalDefaultDelay = 35,
PlayersSleepingPercentage = 36,
ProjectilesCanBreakBlocks = 37,
Pvp = 38,
Raids = 39,
RandomTickSpeed = 40,
ReducedDebugInfo = 41,
RespawnRadius = 42,
SendCommandFeedback = 43,
ShowAdvancementMessages = 44,
ShowDeathMessages = 45,
SpawnerBlocksWork = 46,
SpawnMobs = 47,
SpawnMonsters = 48,
SpawnPatrols = 49,
SpawnPhantoms = 50,
SpawnWanderingTraders = 51,
SpawnWardens = 52,
SpectatorsGenerateChunks = 53,
SpreadVines = 54,
TntExplodes = 55,
TntExplosionDropDecay = 56,
UniversalAnger = 57,
WaterSourceConversion = 58,
}Variants§
AdvanceTime = 0
AdvanceWeather = 1
AllowEnteringNetherUsingPortals = 2
BlockDrops = 3
BlockExplosionDropDecay = 4
CommandBlocksWork = 5
CommandBlockOutput = 6
DrowningDamage = 7
ElytraMovementCheck = 8
EnderPearlsVanishOnDeath = 9
EntityDrops = 10
FallDamage = 11
FireDamage = 12
FireSpreadRadiusAroundPlayer = 13
ForgiveDeadPlayers = 14
FreezeDamage = 15
GlobalSoundEvents = 16
ImmediateRespawn = 17
KeepInventory = 18
LavaSourceConversion = 19
LimitedCrafting = 20
LocatorBar = 21
LogAdminCommands = 22
MaxBlockModifications = 23
MaxCommandForks = 24
MaxCommandSequenceLength = 25
MaxEntityCramming = 26
MaxMinecartSpeed = 27
MaxSnowAccumulationHeight = 28
MobDrops = 29
MobExplosionDropDecay = 30
MobGriefing = 31
NaturalHealthRegeneration = 32
PlayerMovementCheck = 33
PlayersNetherPortalCreativeDelay = 34
PlayersNetherPortalDefaultDelay = 35
PlayersSleepingPercentage = 36
ProjectilesCanBreakBlocks = 37
Pvp = 38
Raids = 39
RandomTickSpeed = 40
ReducedDebugInfo = 41
RespawnRadius = 42
SendCommandFeedback = 43
ShowAdvancementMessages = 44
ShowDeathMessages = 45
SpawnerBlocksWork = 46
SpawnMobs = 47
SpawnMonsters = 48
SpawnPatrols = 49
SpawnPhantoms = 50
SpawnWanderingTraders = 51
SpawnWardens = 52
SpectatorsGenerateChunks = 53
SpreadVines = 54
TntExplodes = 55
TntExplosionDropDecay = 56
UniversalAnger = 57
WaterSourceConversion = 58
Implementations§
Source§impl GameRule
impl GameRule
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for GameRule
impl AzaleaRead for GameRule
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for GameRule
impl AzaleaWrite for GameRule
Source§impl<'de> Deserialize<'de> for GameRule
Available on crate feature serde only.
impl<'de> Deserialize<'de> for GameRule
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNbtTag for GameRule
impl FromNbtTag for GameRule
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl Ord for GameRule
impl Ord for GameRule
Source§impl PartialOrd for GameRule
impl PartialOrd for GameRule
Source§impl ToNbtTag for GameRule
impl ToNbtTag for GameRule
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for GameRule
impl<'a> TryFrom<&'a Identifier> for GameRule
impl Copy for GameRule
impl Eq for GameRule
impl StructuralPartialEq for GameRule
Auto Trait Implementations§
impl Freeze for GameRule
impl RefUnwindSafe for GameRule
impl Send for GameRule
impl Sync for GameRule
impl Unpin for GameRule
impl UnwindSafe for GameRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.