Remove all wiki.vg mentions
wiki.vg is gone
This commit is contained in:
parent
35afc0bfb9
commit
219527dcb2
@ -43,4 +43,3 @@ Here we build Mojang's Textcomponent, Which is used across many places, Often wh
|
|||||||
- [x] Alt
|
- [x] Alt
|
||||||
- [x] Illageralt
|
- [x] Illageralt
|
||||||
|
|
||||||
Reference: https://wiki.vg/Text_formatting
|
|
||||||
@ -18,7 +18,6 @@ pub mod style;
|
|||||||
pub struct Text<'a>(pub Box<TextComponent<'a>>);
|
pub struct Text<'a>(pub Box<TextComponent<'a>>);
|
||||||
|
|
||||||
// Represents a Text component
|
// Represents a Text component
|
||||||
// Reference: https://wiki.vg/Text_formatting#Text_components
|
|
||||||
#[derive(Clone, Debug, Deserialize, PartialEq, Eq, Hash)]
|
#[derive(Clone, Debug, Deserialize, PartialEq, Eq, Hash)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct TextComponent<'a> {
|
pub struct TextComponent<'a> {
|
||||||
|
|||||||
@ -15,7 +15,6 @@ pub mod window_property;
|
|||||||
pub use error::InventoryError;
|
pub use error::InventoryError;
|
||||||
pub use open_container::*;
|
pub use open_container::*;
|
||||||
|
|
||||||
/// https://wiki.vg/Inventory
|
|
||||||
#[derive(Debug, FromPrimitive, Clone, Copy, Eq, PartialEq)]
|
#[derive(Debug, FromPrimitive, Clone, Copy, Eq, PartialEq)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum WindowType {
|
pub enum WindowType {
|
||||||
|
|||||||
@ -43,9 +43,6 @@ impl PlayerInventory {
|
|||||||
}
|
}
|
||||||
/// Set the contents of an item in a slot
|
/// Set the contents of an item in a slot
|
||||||
///
|
///
|
||||||
/// ## Slot
|
|
||||||
/// The slot according to https://wiki.vg/Inventory#Player_Inventory
|
|
||||||
///
|
|
||||||
/// ## Item
|
/// ## Item
|
||||||
/// The optional item to place in the slot
|
/// The optional item to place in the slot
|
||||||
///
|
///
|
||||||
|
|||||||
@ -91,7 +91,6 @@ impl Nbt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Reads NBT tag, that doesn't contain the name of root compound.
|
/// Reads NBT tag, that doesn't contain the name of root compound.
|
||||||
/// Used in [Network NBT](https://wiki.vg/NBT#Network_NBT_(Java_Edition)).
|
|
||||||
pub fn read_unnamed(bytes: &mut impl Buf) -> Result<Nbt, Error> {
|
pub fn read_unnamed(bytes: &mut impl Buf) -> Result<Nbt, Error> {
|
||||||
let tag_type_id = bytes.get_u8();
|
let tag_type_id = bytes.get_u8();
|
||||||
|
|
||||||
@ -124,7 +123,6 @@ impl Nbt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Writes NBT tag, without name of root compound.
|
/// Writes NBT tag, without name of root compound.
|
||||||
/// Used in [Network NBT](https://wiki.vg/NBT#Network_NBT_(Java_Edition)).
|
|
||||||
pub fn write_unnamed(&self) -> Bytes {
|
pub fn write_unnamed(&self) -> Bytes {
|
||||||
let mut bytes = BytesMut::new();
|
let mut bytes = BytesMut::new();
|
||||||
bytes.put_u8(COMPOUND_ID);
|
bytes.put_u8(COMPOUND_ID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user