Class AbstractAvatarConfigHolder

java.lang.Object
com.wildfire.common.entities.EntityConfigHolder<AvatarConfig>
com.wildfire.common.entities.avatars.AbstractAvatarConfigHolder
Direct Known Subclasses:
MannequinConfigHolder, PlayerConfigHolder

@NonExtendable public abstract class AbstractAvatarConfigHolder extends EntityConfigHolder<AvatarConfig>
  • Constructor Details

    • AbstractAvatarConfigHolder

      protected AbstractAvatarConfigHolder(UUID uuid, AvatarConfig config)
  • Method Details

    • updateFromJson

      public void updateFromJson(com.google.gson.JsonElement serialized)
      Update player data from the provided JsonObject
      Parameters:
      serialized - The JsonObject to merge with the existing config for this player
    • updateFromPacket

      public abstract void updateFromPacket(AvatarConfig config)
    • tryPlayHurtSound

      public void tryPlayHurtSound(net.minecraft.world.entity.Avatar player)
      Play the relevant mod hurt sound when a player takes damage
      API Note:
      Only call this on the client side as sounds are only registered on the client.
    • getDebugInfo

      public List<String> getDebugInfo()
      Overrides:
      getDebugInfo in class EntityConfigHolder<AvatarConfig>
    • sounds

      public final Sounds sounds()
    • showBreastsInArmor

      public final ConfigValue<Boolean> showBreastsInArmor()