9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 03:49:19 +00:00

Balloons work 🎈

This commit is contained in:
LoJoSho
2022-11-15 19:14:39 -06:00
parent 83eb393c03
commit b7d77d9695
5 changed files with 325 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import com.hibiscusmc.hmccosmetics.cosmetic.Cosmetic;
import com.hibiscusmc.hmccosmetics.cosmetic.CosmeticSlot;
import com.hibiscusmc.hmccosmetics.cosmetic.types.CosmeticBackpackType;
import com.hibiscusmc.hmccosmetics.entities.InvisibleArmorstand;
import com.hibiscusmc.hmccosmetics.entities.MEGEntity;
import com.hibiscusmc.hmccosmetics.util.PlayerUtils;
import com.hibiscusmc.hmccosmetics.util.packets.PacketManager;
import net.minecraft.world.entity.EquipmentSlot;
@@ -26,6 +27,7 @@ public class CosmeticUser {
private HashMap<CosmeticSlot, Cosmetic> playerCosmetics = new HashMap<>();
private Wardrobe wardrobe;
private InvisibleArmorstand invisibleArmorstand;
private MEGEntity balloonEntity;
public CosmeticUser(UUID uuid) {
@@ -51,6 +53,9 @@ public class CosmeticUser {
public InvisibleArmorstand getBackpackEntity() {
return this.invisibleArmorstand;
}
public MEGEntity getBalloonEntity() {
return this.balloonEntity;
}
public void addPlayerCosmetic(Cosmetic cosmetic) {
playerCosmetics.put(cosmetic.getSlot(), cosmetic);