aboutsummaryrefslogtreecommitdiff
path: root/src/features/cosmetics/cosmetic.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/cosmetics/cosmetic.js')
-rw-r--r--src/features/cosmetics/cosmetic.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/features/cosmetics/cosmetic.js b/src/features/cosmetics/cosmetic.js
new file mode 100644
index 0000000..878e425
--- /dev/null
+++ b/src/features/cosmetics/cosmetic.js
@@ -0,0 +1,29 @@
+
+class Cosmetic{
+ constructor(player, parent, id){
+
+ if(player.getUUID().toString() === Player.getUUID().toString()) player = Player
+ /**
+ * @type {PlayerMP | Player}
+ */
+ this.player = player
+
+ this.parent = parent
+
+ this.id = id
+
+ this.settings = this.parent.getPlayerCosmeticSettings(this.player, id)
+
+ this.onTick()
+ }
+
+ onRenderEntity(ticks, isInGui){
+ //override
+ }
+
+ onTick(){
+ //override
+ }
+}
+
+export default Cosmetic; \ No newline at end of file