aboutsummaryrefslogtreecommitdiff
path: root/src/features/cosmetics/cosmetic.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
commit431e4fc9d1657a50ebc34b8ac24f9bfaea06417f (patch)
tree5987bb14f38d2999c682970429f34b41eb3e5826 /src/features/cosmetics/cosmetic.js
parente73f2efdf0f50aa775c540317394d46428e9704f (diff)
downloadSoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.gz
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.bz2
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.zip
Initial move to babel + change fetch to use async/await
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