-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use pumpkin_macros::packet; | ||
use pumpkin_text::TextComponent; | ||
use serde::Serialize; | ||
|
||
#[derive(Serialize)] | ||
#[packet(0x4C)] | ||
pub struct CActionBar { | ||
action_bar: TextComponent, | ||
} | ||
|
||
impl CActionBar { | ||
pub fn new(action_bar: TextComponent) -> Self { | ||
Self { action_bar } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use pumpkin_macros::packet; | ||
use pumpkin_text::TextComponent; | ||
use serde::Serialize; | ||
|
||
#[derive(Serialize)] | ||
#[packet(0x65)] | ||
pub struct CTitleText { | ||
title: TextComponent, | ||
} | ||
|
||
impl CTitleText { | ||
pub fn new(title: TextComponent) -> Self { | ||
Self { title } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use pumpkin_macros::packet; | ||
use pumpkin_text::TextComponent; | ||
use serde::Serialize; | ||
|
||
#[derive(Serialize)] | ||
#[packet(0x63)] | ||
pub struct CSubtitle { | ||
subtitle: TextComponent, | ||
} | ||
|
||
impl CSubtitle { | ||
pub fn new(subtitle: TextComponent) -> Self { | ||
Self { subtitle } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters